Skip to content

Commit 6892523

Browse files
committed
refactor(database,authorization)!: getDatabaseType returning dialect
1 parent 812a3d6 commit 6892523

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

modules/authorization/src/controllers/permissions.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class PermissionsController {
215215
},
216216
],
217217
sqlQuery:
218-
dbType === 'PostgreSQL'
218+
dbType === 'postgres'
219219
? getPostgresAccessListQuery(
220220
objectTypeCollection,
221221
computedTuple,

modules/database/src/adapters/sequelize-adapter/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,7 @@ export abstract class SequelizeAdapter extends DatabaseAdapter<SequelizeSchema>
363363
}
364364

365365
getDatabaseType(): string {
366-
const type = this.sequelize.getDialect();
367-
if (type === 'postgres') {
368-
return 'PostgreSQL'; // TODO: clean up
369-
}
370-
return type;
366+
return this.sequelize.getDialect();
371367
}
372368

373369
async createIndex(

0 commit comments

Comments
 (0)