user post processing

This commit is contained in:
Peter Clement 2022-07-26 20:20:12 +01:00
parent 548e8d518c
commit 196130af08
1 changed files with 3 additions and 2 deletions

View File

@ -301,8 +301,9 @@ export const bulkCreate = async (
// Post processing of bulk added users, i.e events and cache operations
for (const user of usersToBulkSave) {
//await eventHelpers.handleSaveEvents(user, null)
//await apps.syncUserInApps(user._id)
delete user.password
await eventHelpers.handleSaveEvents(user, null)
await apps.syncUserInApps(user._id)
}
return response