From a28f19ff3cfaa5e4f960454645fb1d93e58d0865 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 5 Sep 2024 16:16:28 +1200 Subject: [PATCH] Merge fix --- app/controllers/api/databases.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 5355fe7aaf..a13727806b 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -1895,6 +1895,9 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/strin ->param('default', null, new Nullable(new Text(0, 0)), 'Default value for attribute when not provided. Cannot be set when attribute is required.') ->param('size', null, new Integer(), 'Maximum size of the string attribute.', true) ->param('newKey', null, new Key(), 'New attribute key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') ->action(function (string $databaseId, string $collectionId, string $key, ?bool $required, ?string $default, ?int $size, ?string $newKey, Response $response, Database $dbForProject, Event $queueForEvents) { $attribute = updateAttribute(