From 8f443ee19d804c755b0212644f69fb2a6df10f88 Mon Sep 17 00:00:00 2001 From: Artem Salpagarov Date: Tue, 31 Jan 2023 13:23:17 +0300 Subject: [PATCH] [push] App filter for consent removal --- plugins/push/api/api-reset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [];