From e9c730e0c1ed267d90a70a3d694e6502158cfddd Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 15 Aug 2025 01:03:18 +1200 Subject: [PATCH] Add txn id to create multi-method params --- .../Databases/Http/Databases/Collections/Documents/Create.php | 2 ++ .../Utopia/Database/Validator/Queries/Transactions.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php index 5e7c20b76d..6c9a7ee228 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -82,6 +82,7 @@ class Create extends Action new Parameter('documentId', optional: false), new Parameter('data', optional: false), new Parameter('permissions', optional: true), + new Parameter('transactionId', optional: true), ], deprecated: new Deprecated( since: '1.8.0', @@ -106,6 +107,7 @@ class Create extends Action new Parameter('databaseId', optional: false), new Parameter('collectionId', optional: false), new Parameter('documents', optional: false), + new Parameter('transactionId', optional: true), ], deprecated: new Deprecated( since: '1.8.0', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Transactions.php b/src/Appwrite/Utopia/Database/Validator/Queries/Transactions.php index 2f557e5489..b49494c0af 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Transactions.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Transactions.php @@ -4,8 +4,8 @@ namespace Appwrite\Utopia\Database\Validator\Queries; class Transactions extends Base { - /** @var string[] */ - public const ALLOWED_ATTRIBUTES = [ + /** @var array */ + public const array ALLOWED_ATTRIBUTES = [ 'status', 'expiresAt', ];