Ensure updated txn is returned from bulk op add

This commit is contained in:
Jake Barnby 2025-08-15 01:32:09 +12:00
parent bed46be720
commit ad8cebc6e3
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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',