There was an error while loading. Please reload this page.
1 parent 60a2955 commit e67d014Copy full SHA for e67d014
1 file changed
src/LiveQuery/ParseLiveQueryServer.ts
@@ -1377,10 +1377,10 @@ class ParseLiveQueryServer {
1377
try {
1378
const sessionToken = subscriptionInfo.sessionToken || client.sessionToken;
1379
const parseQuery = new Parse.Query(className);
1380
-
1381
- if (query && typeof query === 'object' && query !== null && Object.keys(query).length > 0) {
1382
- parseQuery._where = query;
1383
- }
+ parseQuery.withJSON({
+ className,
+ where: query || {},
+ });
1384
1385
if (subscriptionInfo.keys && Array.isArray(subscriptionInfo.keys) && subscriptionInfo.keys.length > 0) {
1386
parseQuery.select(...subscriptionInfo.keys);
0 commit comments