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:
guru_sainath 2023-06-14 14:04:25 +05:30 committed by GitHub
parent 4083f623a0
commit be7706e62e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 11 deletions

View file

@ -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 {