Skip to content

Commit

Permalink
refactor(db): Remove unnecessary pool configurations in knexfile.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 7, 2024
1 parent b13c29e commit 83919de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/db/knexfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ const knexConfig: Knex.Config = {
pool: {
min: 2,
max: 10,
acquireTimeoutMillis: 60000, // Increase to 60 seconds
createTimeoutMillis: 60000, // Increase to 60 seconds
idleTimeoutMillis: 60000, // Increase to 60 seconds
reapIntervalMillis: 1000, // 1 second
afterCreate: (conn: any, done: (err: Error | null, conn: any) => void) => {

Check warning on line 25 in src/db/knexfile.ts

View workflow job for this annotation

GitHub Actions / ESLint (22.x)

Unexpected any. Specify a different type

Check warning on line 25 in src/db/knexfile.ts

View workflow job for this annotation

GitHub Actions / ESLint (22.x)

Unexpected any. Specify a different type
console.info('New database connection established');
done(null, conn);
Expand Down

0 comments on commit 83919de

Please sign in to comment.