From 204234941cbf6e4c19995eb9d86e96466be4fdc6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 27 Jan 2022 19:44:53 +1300 Subject: [PATCH] Remove $loose param from constructors --- app/controllers/api/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 963f8fb5b..c779b52da 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -1014,9 +1014,9 @@ App::post('/v1/database/collections/:collectionId/attributes/float') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/database#createCollection).') ->param('key', '', new Key(), 'Attribute Key.') ->param('required', null, new Boolean(), 'Is attribute required?') - ->param('min', null, new FloatValidator(true), 'Minimum value to enforce on new documents', true) - ->param('max', null, new FloatValidator(true), 'Maximum value to enforce on new documents', true) - ->param('default', null, new FloatValidator(true), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) + ->param('min', null, new FloatValidator(), 'Minimum value to enforce on new documents', true) + ->param('max', null, new FloatValidator(), 'Maximum value to enforce on new documents', true) + ->param('default', null, new FloatValidator(), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) ->param('array', false, new Boolean(), 'Is attribute an array?', true) ->inject('response') ->inject('dbForProject')