mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
updated queries
This commit is contained in:
1 parent
f9c18a6462
commit
ac80ba270b
1 file changed
+6
-3
@@ -56,9 +56,12 @@ class SubscribePayload extends Validator
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// not validating queries here as we will be doing it anyways during the controller level
|
||||
// kind of expensive validating queries twice as we need to check a lot of cases
|
||||
if (\array_key_exists('queries', $payload)
|
||||
&& (!\is_array($payload['queries']) || !\array_is_list($payload['queries']))
|
||||
) {
|
||||
$this->description = 'queries is not a valid array.';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user