Skip to content

Commit 74aa71c

Browse files
committed
dev
1 parent c8eb45f commit 74aa71c

File tree

1 file changed

+2
-4
lines changed
  • packages/cubejs-testing/birdbox-fixtures/postgresql/single

1 file changed

+2
-4
lines changed

packages/cubejs-testing/birdbox-fixtures/postgresql/single/sqlapi.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ module.exports = {
1313
return query;
1414
},
1515
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');
16+
if (!(req && typeof req.protocol === 'string' && typeof req.method === 'string')) {
17+
throw new Error('Request object is not valid');
2018
}
2119

2220
if (user === 'admin') {

0 commit comments

Comments
 (0)