From ec515dbe90bf9ffc645db97bf6f72707ee19ff90 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 27 May 2024 12:24:07 +0300 Subject: [PATCH] Fix script delete method --- scripts/2024-05-24.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/2024-05-24.js b/scripts/2024-05-24.js index 89a98dc..39debf4 100644 --- a/scripts/2024-05-24.js +++ b/scripts/2024-05-24.js @@ -32,6 +32,6 @@ function keepRPOsWithRole(aliasWithRole) { if(keepRPOsWithRole(aliasWithRole)) { print('Deleting old profiles'); - db.stakeholder.deleteMany({ alias: { $nin: aliasWithRole }, defaultId: { $ne: null } }); + db.stakeholder.deleteMany({ alias: { $nin: aliasWithRole }, defaultId: { $ne: null }, type: "organization"}); initializeRPOs(rpos); }