Add fix for user metadata sync when deleting
This commit is contained in:
parent
f50014da79
commit
731cc4229b
|
@ -81,7 +81,7 @@ exports.syncUser = async function (ctx) {
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const roles = user.roles
|
const roles = deleting ? {} : user.roles
|
||||||
// remove props which aren't useful to metadata
|
// remove props which aren't useful to metadata
|
||||||
delete user.password
|
delete user.password
|
||||||
delete user.forceResetPassword
|
delete user.forceResetPassword
|
||||||
|
|
Loading…
Reference in New Issue