From 9838571184f437b80a08d53b49419fef7c2c0a7a Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 15 Aug 2025 00:37:18 +1200 Subject: [PATCH] Catch explicit txn exception --- .../Platform/Modules/Databases/Http/Transactions/Update.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Transactions/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Transactions/Update.php index ee40bbc6cd..d42e242e82 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Transactions/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Transactions/Update.php @@ -201,6 +201,12 @@ class Update extends Action ])); throw new Exception(Exception::TRANSACTION_CONFLICT); + } catch (TransactionException $e) { + $dbForProject->updateDocument('transactions', $transactionId, new Document([ + 'status' => 'failed', + ])); + + throw new Exception(Exception::TRANSACTION_FAILED, $e->getMessage()); } }); }