Skip to content

Commit

Permalink
fix: disable propagateCreateError
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
  • Loading branch information
cameri committed Dec 27, 2022
1 parent a7b02fc commit 792d45d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/database/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ const createDbConfig = (): Knex.Config => ({
min: process.env.DB_MIN_POOL_SIZE ? Number(process.env.DB_MIN_POOL_SIZE) : 0,
max: process.env.DB_MAX_POOL_SIZE ? Number(process.env.DB_MAX_POOL_SIZE) : 3,
idleTimeoutMillis: 10000,
propagateCreateError: false,
},
acquireConnectionTimeout: 2000,
acquireConnectionTimeout: 30000,
})

let client: Knex
Expand Down

0 comments on commit 792d45d

Please # to comment.