Merge pull request #3614 from Budibase/fix/delete-user

Add fix for user metadata sync when deleting
This commit is contained in:
Rory Powell 2021-12-01 10:50:40 +00:00 committed by GitHub
commit a82b3d7164
1 changed files with 1 additions and 1 deletions

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