diff --git a/plugins/push/api/api-reset.js b/plugins/push/api/api-reset.js index 9de517fd5ed..56f1c7184e6 100644 --- a/plugins/push/api/api-reset.js +++ b/plugins/push/api/api-reset.js @@ -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 = [];