Allow same user to be updated multiple times
This commit is contained in:
parent
2cb280ee72
commit
0d1f7b4945
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue