Fix script delete method

This commit is contained in:
Konstantinos Triantafyllou 2024-05-27 12:24:07 +03:00
parent 9338e5e23c
commit ec515dbe90
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}