Remove redundant read

This commit is contained in:
Jake Barnby 2025-08-15 00:36:59 +12:00
parent fb31fbea9b
commit 5cd99de6e4
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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) {