chore: updating last_workspace_id under user (#1289)
* chore: onboarding steps workflow verification * chore: onboarding onboarding variable update * chore: role check in onboarding * chore: updated last_workspace_id under user
This commit is contained in:
parent
4083f623a0
commit
be7706e62e
2 changed files with 15 additions and 11 deletions
|
|
@ -96,16 +96,7 @@ const Onboarding: NextPage = () => {
|
|||
) ?? userWorkspaces[0];
|
||||
|
||||
if (lastActiveWorkspace) {
|
||||
userService
|
||||
.updateUser({
|
||||
last_workspace_id: lastActiveWorkspace.id,
|
||||
})
|
||||
.then((res) => {
|
||||
mutateUser();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
mutateUser();
|
||||
Router.push(`/${lastActiveWorkspace.slug}`);
|
||||
return;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue