mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 04:45:54 +00:00
Merge pull request #16401 from strapi/fix/do-not-return-completed-transactions-2
This commit is contained in:
commit
95c7a865b5
@ -57,15 +57,15 @@ class Database {
|
||||
|
||||
async function commit() {
|
||||
if (notNestedTransaction) {
|
||||
await trx.commit();
|
||||
transactionCtx.clear();
|
||||
await trx.commit();
|
||||
}
|
||||
}
|
||||
|
||||
async function rollback() {
|
||||
if (notNestedTransaction) {
|
||||
await trx.rollback();
|
||||
transactionCtx.clear();
|
||||
await trx.rollback();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user