From 1ff0ecdee25199c6e433af34140b3bc0aab6c065 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 27 Jan 2022 23:23:57 +1300 Subject: [PATCH] Remove Integer $loose parameters --- 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 a41a4fa625..da3cfc68b0 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -945,9 +945,9 @@ App::post('/v1/database/collections/:collectionId/attributes/integer') ->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 Integer(true), 'Minimum value to enforce on new documents', true) - ->param('max', null, new Integer(true), 'Maximum value to enforce on new documents', true) - ->param('default', null, new Integer(true), 'Default value for attribute when not provided. Cannot be set when attribute is required.', true) + ->param('min', null, new Integer(), 'Minimum value to enforce on new documents', true) + ->param('max', null, new Integer(), 'Maximum value to enforce on new documents', true) + ->param('default', null, new Integer(), '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')