mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Remove redundant read
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user