mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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->createDocuments('transactionLogs', $staged);
|
||||||
$dbForProject->increaseDocumentAttribute(
|
return $dbForProject->increaseDocumentAttribute(
|
||||||
'transactions',
|
'transactions',
|
||||||
$transactionId,
|
$transactionId,
|
||||||
'operations',
|
'operations',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue