1
0
Fork 0
mirror of synced 2024-09-28 15:21:28 +12:00

Add fix for user metadata sync when deleting

This commit is contained in:
Rory Powell 2021-12-01 09:54:23 +00:00
parent acdc68efad
commit 04a7382392

View file

@ -81,7 +81,7 @@ exports.syncUser = async function (ctx) {
throw err
}
}
const roles = user.roles
const roles = deleting ? {} : user.roles
// remove props which aren't useful to metadata
delete user.password
delete user.forceResetPassword