diff --git a/db/db.ts b/db/db.ts index 2f9428e3b03..c91bc5cbdaa 100644 --- a/db/db.ts +++ b/db/db.ts @@ -141,7 +141,7 @@ async function knexTransaction( ) return result } finally { - if (closeConnection) { + if (closeConnection === TransactionCloseMode.Close) { await knex.destroy() if (knex === _knexInstance) _knexInstance = undefined }