Skip to content

Commit

Permalink
Merge pull request #3883 from Countly/hotfix/push
Browse files Browse the repository at this point in the history
[push] App filter for consent removal
  • Loading branch information
ar2rsawseen authored Jan 31, 2023
2 parents db6323b + 8f443ee commit 02ebd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/push/api/api-reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function clear(ob) {
* @param {string} error error code (consent is default)
*/
async function removeUsers(appId, uids, error = 'consent') {
let stream = common.db.collection('push').find({u: {$in: uids}}).stream(),
let stream = common.db.collection('push').find({a: dbext.oid(appId), u: {$in: uids}}).stream(),
updates = {},
ids = [];

Expand Down

0 comments on commit 02ebd7c

Please sign in to comment.