The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(auth): update onboarding activation for specific users (#9702)
Antoine Moreaux679429447d45
diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.tsindex 384865c8dc2..41ba1c67716 100644--- a/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/services/sign-in-up.service.ts@@ -98,7 +98,6 @@ export class SignInUpService {};}- // with global invitation flowif (params.workspace) {const updatedUser = await this.signInUpOnExistingWorkspace({workspace: params.workspace,@@ -246,7 +245,9 @@ export class SignInUpService {const user = Object.assign(currentUser, updatedUser);- await this.activateOnboardingForUser(user, params.workspace);+ if (params.userData.type === 'newUserWithPicture') {+ await this.activateOnboardingForUser(user, params.workspace);+ }return user;}