Skip to content

Commit

Permalink
[push] App filter for consent removal
Browse files Browse the repository at this point in the history
  • Loading branch information
iartem committed Jan 31, 2023
1 parent af44d04 commit 8f443ee
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 8f443ee

Please sign in to comment.