mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Ensure updated txn is returned from bulk op add
This commit is contained in:
parent
bed46be720
commit
ad8cebc6e3
1 changed files with 2 additions and 2 deletions
|
|
@ -100,9 +100,9 @@ class Create extends Action
|
|||
]);
|
||||
}
|
||||
|
||||
$dbForProject->withTransaction(function () use ($dbForProject, $transactionId, $staged, $existing, $operations) {
|
||||
$transaction = $dbForProject->withTransaction(function () use ($dbForProject, $transactionId, $staged, $existing, $operations) {
|
||||
$dbForProject->createDocuments('transactionLogs', $staged);
|
||||
$dbForProject->increaseDocumentAttribute(
|
||||
return $dbForProject->increaseDocumentAttribute(
|
||||
'transactions',
|
||||
$transactionId,
|
||||
'operations',
|
||||
|
|
|
|||
Loading…
Reference in a new issue