Skip to content

Commit 5bb9fd4

Browse files
committed
feat(LiveQuery): use returnACL flag
1 parent 33f8fbe commit 5bb9fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/live-query.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = (AV) => {
8383
} = {}) => {
8484
if (!AV._config.realtime) throw new Error('LiveQuery not supported. Please use the LiveQuery bundle. https://url.leanapp.cn/enable-live-query');
8585
if (!(query instanceof AV.Query)) throw new TypeError('LiveQuery must be inited with a Query');
86-
const { where, keys } = query.toJSON();
86+
const { where, keys, returnACL } = query.toJSON();
8787
return Promise.resolve(userDefinedSubscriptionId)
8888
.then(subscriptionId =>
8989
request({
@@ -93,6 +93,7 @@ module.exports = (AV) => {
9393
query: {
9494
where,
9595
keys,
96+
returnACL,
9697
className: query.className,
9798
},
9899
id: subscriptionId,

0 commit comments

Comments
 (0)