From 0d1f7b49453c26cf3b949f3ef8062943701fed4e Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 13 Jan 2023 17:59:50 +0000 Subject: [PATCH] Allow same user to be updated multiple times --- .../pages/builder/portal/overview/_components/AccessTab.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte b/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte index 71a86f2fca..082dda43be 100644 --- a/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte +++ b/packages/builder/src/pages/builder/portal/overview/_components/AccessTab.svelte @@ -68,7 +68,8 @@ async function updateUserRole(role, user) { user.roles[fixedAppId] = role - await users.save(user) + const response = await users.save(user) + user._rev = response._rev } async function updateGroupRole(role, group) {