From 7536d8eb0feb3f1c097941385a4f3e7b1e85c0c6 Mon Sep 17 00:00:00 2001 From: prateek banga Date: Thu, 16 Nov 2023 17:09:08 +0530 Subject: [PATCH] review changes --- app/config/collections.php | 4 ++-- app/controllers/api/account.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config/collections.php b/app/config/collections.php index 0c67cd175f..0596faece7 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1874,12 +1874,12 @@ $commonCollections = [ '$id' => ID::custom('name'), 'type' => Database::VAR_STRING, 'format' => '', - 'size' => 16384, + 'size' => Database::LENGTH_KEY, 'signed' => true, 'required' => false, 'default' => null, 'array' => false, - 'filters' => ['json'], + 'filters' => [''], ], ], 'indexes' => [ diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 45beab5ec6..783b8151a4 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3168,7 +3168,7 @@ App::put('/v1/account/targets/:targetId/push') ->label('sdk.response.model', Response::MODEL_TARGET) ->label('docs', false) ->param('targetId', '', new UID(), 'Target ID.') - ->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)', true) + ->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)') ->inject('queueForEvents') ->inject('user') ->inject('request')