mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 08:04:51 +00:00
fix: clear context if it is not a nested transaction
This commit is contained in:
parent
1aa2ec5f0a
commit
040a2de984
@ -58,15 +58,15 @@ class Database {
|
||||
async function commit() {
|
||||
if (notNestedTransaction) {
|
||||
await trx.commit();
|
||||
transactionCtx.clear();
|
||||
}
|
||||
transactionCtx.clear();
|
||||
}
|
||||
|
||||
async function rollback() {
|
||||
if (notNestedTransaction) {
|
||||
await trx.rollback();
|
||||
transactionCtx.clear();
|
||||
}
|
||||
transactionCtx.clear();
|
||||
}
|
||||
|
||||
if (!cb) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user