Skip to content

The open alternative to Salesforce, designed for AI.

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.ts
index 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 flow
if (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;
}