mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Ensure updated txn is returned from bulk op add
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user