@@ -330,8 +330,8 @@ class ParseLiveQueryServer {
330330 } else {
331331 return null ;
332332 }
333- const listenFieldsChanged = this . _checkListenFields ( client , requestId , message ) ;
334- if ( ! listenFieldsChanged && ( type === 'update' || type === 'create' ) ) {
333+ const watchFieldsChanged = this . _checkWatchFields ( client , requestId , message ) ;
334+ if ( ! watchFieldsChanged && ( type === 'update' || type === 'create' ) ) {
335335 return ;
336336 }
337337 res = {
@@ -712,15 +712,15 @@ class ParseLiveQueryServer {
712712 return auth ;
713713 }
714714
715- _checkListenFields ( client : any , requestId : any , message : any ) {
715+ _checkWatchFields ( client : any , requestId : any , message : any ) {
716716 const subscriptionInfo = client . getSubscriptionInfo ( requestId ) ;
717- const listen = subscriptionInfo ?. listen ;
718- if ( ! listen ) {
717+ const watch = subscriptionInfo ?. watch ;
718+ if ( ! watch ) {
719719 return true ;
720720 }
721721 const object = message . currentParseObject ;
722722 const original = message . originalParseObject ;
723- return listen . some ( field => ! isDeepStrictEqual ( object . get ( field ) , original ?. get ( field ) ) ) ;
723+ return watch . some ( field => ! isDeepStrictEqual ( object . get ( field ) , original ?. get ( field ) ) ) ;
724724 }
725725
726726 async _matchesACL ( acl : any , client : any , requestId : number ) : Promise < boolean > {
@@ -904,8 +904,8 @@ class ParseLiveQueryServer {
904904 if ( request . query . fields ) {
905905 subscriptionInfo . fields = request . query . fields ;
906906 }
907- if ( request . query . listen ) {
908- subscriptionInfo . listen = request . query . listen ;
907+ if ( request . query . watch ) {
908+ subscriptionInfo . watch = request . query . watch ;
909909 }
910910 if ( request . sessionToken ) {
911911 subscriptionInfo . sessionToken = request . sessionToken ;
0 commit comments