Skip to content

Commit

Permalink
🐛 fix stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Mar 18, 2024
1 parent 4816ba2 commit 9855cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function knexTransaction<T, KT>(
)
return result
} finally {
if (closeConnection) {
if (closeConnection === TransactionCloseMode.Close) {
await knex.destroy()
if (knex === _knexInstance) _knexInstance = undefined
}
Expand Down

0 comments on commit 9855cf0

Please sign in to comment.