We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8eb45f commit 74aa71cCopy full SHA for 74aa71c
packages/cubejs-testing/birdbox-fixtures/postgresql/single/sqlapi.js
@@ -13,10 +13,8 @@ module.exports = {
13
return query;
14
},
15
checkSqlAuth: async (req, user, password) => {
16
- console.log('MN CHECK: REQUEST:', { req });
17
-
18
- if (req.protocol !== 'postgres') {
19
- throw new Error('Protocol is not postgres');
+ if (!(req && typeof req.protocol === 'string' && typeof req.method === 'string')) {
+ throw new Error('Request object is not valid');
20
}
21
22
if (user === 'admin') {
0 commit comments