reverted type error as query exception only thown

This commit is contained in:
ArnabChatterjee20k
2026-05-07 12:34:34 +05:30
parent ce07c6ffd5
commit ec8d48327c
@@ -57,8 +57,6 @@ class Subscribe extends Action
$convertedQueries = Realtime::convertQueries($queries);
} catch (QueryException $e) {
throw new Exception(Exception::REALTIME_MESSAGE_FORMAT_INVALID, 'Invalid query: ' . $e->getMessage());
} catch (\TypeError $e) {
throw new Exception(Exception::REALTIME_MESSAGE_FORMAT_INVALID, 'Invalid query: query elements must be strings.');
}
$convertedChannels = \array_keys(Realtime::convertChannels($payload['channels'], $userId));