Fix script delete method
This commit is contained in:
parent
9338e5e23c
commit
ec515dbe90
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue