mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Merge branch 'feat-txn' of github.com:appwrite/appwrite into feat-txn
This commit is contained in:
commit
17a5019606
1 changed files with 3 additions and 2 deletions
|
|
@ -651,8 +651,9 @@ class Update extends Action
|
|||
}
|
||||
|
||||
// Use timestamp wrapper for independent operations
|
||||
$dbForProject->withRequestTimestamp($createdAt, function () use ($dbForProject, $collectionId, $documentId, $data) {
|
||||
$dbForProject->decreaseDocumentAttribute(
|
||||
// Use timestamp wrapper for independent operations
|
||||
$dbForProject->withRequestTimestamp($createdAt, function () use ($dbForProject, $collectionId, $documentId, $data, &$state) {
|
||||
$state[$collectionId][$documentId] = $dbForProject->decreaseDocumentAttribute(
|
||||
collection: $collectionId,
|
||||
id: $documentId,
|
||||
attribute: $data[$this->getAttributeKey()],
|
||||
|
|
|
|||
Loading…
Reference in a new issue