diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 92a4f802f7..b8c2f6ab8d 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -456,9 +456,7 @@ App::post('/v1/database/collections/:collectionId/indexes') ->param('id', null, new Key(), 'Index ID.') ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE, Database::INDEX_SPATIAL, Database::INDEX_ARRAY]), 'Index type.') ->param('attributes', null, new ArrayList(new Key()), 'Array of attributes to index.') - // TODO@kodumbeats debug below ->param('orders', [], new ArrayList(new WhiteList(['ASC', 'DESC'], false, Database::VAR_STRING)), 'Array of index orders.', true) - // ->param('orders', [], new ArrayList(new Text(4)), 'Array of index orders.', true) ->inject('response') ->inject('dbForExternal') ->inject('database')