Fix onboarding status refacto (#6533)
see comments in https://github.com/twentyhq/twenty/pull/6531#pullrequestreview-2217807413 - rename method - add check before setting create profile pending user var
This commit is contained in:
@ -197,11 +197,13 @@ export class SignInUpService {
|
||||
value: true,
|
||||
});
|
||||
|
||||
await this.onboardingService.setOnboardingCreateProfileCompletion({
|
||||
userId: user.id,
|
||||
workspaceId: workspace.id,
|
||||
value: true,
|
||||
});
|
||||
if (firstName === '' && lastName === '') {
|
||||
await this.onboardingService.setOnboardingCreateProfilePending({
|
||||
userId: user.id,
|
||||
workspaceId: workspace.id,
|
||||
value: true,
|
||||
});
|
||||
}
|
||||
|
||||
return user;
|
||||
}
|
||||
@ -257,11 +259,13 @@ export class SignInUpService {
|
||||
value: true,
|
||||
});
|
||||
|
||||
await this.onboardingService.setOnboardingCreateProfileCompletion({
|
||||
userId: user.id,
|
||||
workspaceId: workspace.id,
|
||||
value: true,
|
||||
});
|
||||
if (firstName === '' && lastName === '') {
|
||||
await this.onboardingService.setOnboardingCreateProfilePending({
|
||||
userId: user.id,
|
||||
workspaceId: workspace.id,
|
||||
value: true,
|
||||
});
|
||||
}
|
||||
|
||||
await this.onboardingService.setOnboardingInviteTeamPending({
|
||||
workspaceId: workspace.id,
|
||||
|
||||
Reference in New Issue
Block a user