Skip to content

Commit

Permalink
feat: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlyy committed May 9, 2024
1 parent ef81d78 commit da4ed92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/backend/src/peripherals/database/shared/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export class Database {
this.logger = this.logger.for(this)
this.knex = KnexConstructor({
client: 'pg',
pool: {
idleTimeoutMillis: 120 * 1000,
},
connection,
migrations: {
migrationSource: new PolyglotMigrationSource(
Expand Down

0 comments on commit da4ed92

Please sign in to comment.