mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Remove redundant read
This commit is contained in:
parent
fb31fbea9b
commit
5cd99de6e4
1 changed files with 1 additions and 3 deletions
|
|
@ -187,7 +187,7 @@ class Update extends Action
|
|||
});
|
||||
}
|
||||
|
||||
$dbForProject->updateDocument('transactions', $transactionId, new Document([
|
||||
$transaction = $dbForProject->updateDocument('transactions', $transactionId, new Document([
|
||||
'status' => 'committed',
|
||||
]));
|
||||
|
||||
|
|
@ -203,8 +203,6 @@ class Update extends Action
|
|||
throw new Exception(Exception::TRANSACTION_CONFLICT);
|
||||
}
|
||||
});
|
||||
|
||||
$transaction = $dbForProject->getDocument('transactions', $transactionId);
|
||||
}
|
||||
|
||||
if ($rollback) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue