Skip to content

Commit c8eb45f

Browse files
committed
dev
1 parent 0dc1cb1 commit c8eb45f

File tree

1 file changed

+6
-0
lines changed
  • packages/cubejs-testing/birdbox-fixtures/postgresql/single

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ 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');
20+
}
21+
1622
if (user === 'admin') {
1723
if (password && password !== 'admin_password') {
1824
throw new Error(`Password doesn't match for ${user}`);

0 commit comments

Comments
 (0)