Allow same user to be updated multiple times

This commit is contained in:
Adria Navarro 2023-01-13 17:59:50 +00:00
parent 2cb280ee72
commit 0d1f7b4945
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@
async function updateUserRole(role, user) { async function updateUserRole(role, user) {
user.roles[fixedAppId] = role user.roles[fixedAppId] = role
await users.save(user) const response = await users.save(user)
user._rev = response._rev
} }
async function updateGroupRole(role, group) { async function updateGroupRole(role, group) {