Add txn id to create multi-method params

This commit is contained in:
Jake Barnby 2025-08-15 01:03:18 +12:00
parent 875338d133
commit e9c730e0c1
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 4 additions and 2 deletions

View file

@ -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',

View file

@ -4,8 +4,8 @@ namespace Appwrite\Utopia\Database\Validator\Queries;
class Transactions extends Base
{
/** @var string[] */
public const ALLOWED_ATTRIBUTES = [
/** @var array<string> */
public const array ALLOWED_ATTRIBUTES = [
'status',
'expiresAt',
];