mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Update src/Appwrite/Platform/Modules/Databases/Http/Databases/Transactions/Update.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
deb3d75375
commit
e93e03c248
1 changed files with 3 additions and 2 deletions
|
|
@ -591,8 +591,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