Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Nov 28, 2017
1 parent ec5af2f commit fa956c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LiveQuery/ParseLiveQueryServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ class ParseLiveQueryServer {
}
return Parse.Promise.as(['*']);
}).then((aclGroup) => {
console.log(aclGroup); // eslint-disable-line
try {
return SchemaController.validatePermission(classLevelPermissions, object.className, aclGroup, op).then(() => {
return Parse.Promise.as(true);
Expand All @@ -377,7 +376,7 @@ class ParseLiveQueryServer {
}

_getCLPOperation(query: any) {
return typeof query == 'object'
return typeof query === 'object'
&& Object.keys(query).length == 1
&& typeof query.objectId === 'string' ? 'get' : 'find';
}
Expand Down

0 comments on commit fa956c7

Please sign in to comment.