updated queries

This commit is contained in:
ArnabChatterjee20k
2026-05-06 13:24:34 +05:30
parent f9c18a6462
commit ac80ba270b
@@ -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;