Skip to content

Commit

Permalink
Update DB
Browse files Browse the repository at this point in the history
  • Loading branch information
0kl-usds committed Dec 4, 2023
1 parent 42b0141 commit 195e988
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -84,7 +88,7 @@ export default class DB implements DBInterface {
public async query<T extends object>(
sql: string | { query: string; values: unknown[] },
options: QueryOptionsWithType<QueryTypes.SELECT> & { plain: true },
): Promise<T> {
): Promise<T> {
return this.sequelize.query(sql, options);
}

Expand Down

0 comments on commit 195e988

Please sign in to comment.