diff --git a/api/src/database/index.ts b/api/src/database/index.ts index 21f05f6..01f9bb2 100644 --- a/api/src/database/index.ts +++ b/api/src/database/index.ts @@ -39,7 +39,11 @@ export default class DB implements DBInterface { createdAt: 'created_at', timestamps: false, }, - ssl: false + dialectOptions: { + ssl: { + rejectUnauthorized: false + } + } }); try { initModels(this.sequelize); @@ -84,7 +88,7 @@ export default class DB implements DBInterface { public async query( sql: string | { query: string; values: unknown[] }, options: QueryOptionsWithType & { plain: true }, - ): Promise { + ): Promise { return this.sequelize.query(sql, options); }