mirror of
https://github.com/twentyhq/twenty.git
synced 2024-09-11 23:37:21 +03:00
BUG FIX: Create workspace member if inviteHash exists (#3917)
Create workspace member if inviteHash exists
This commit is contained in:
parent
35fce6a6b4
commit
d016e5ff03
@ -167,7 +167,13 @@ export class AuthService {
|
||||
defaultWorkspace: workspace,
|
||||
});
|
||||
|
||||
return await this.userRepository.save(userToCreate);
|
||||
const user = await this.userRepository.save(userToCreate);
|
||||
|
||||
if (workspaceInviteHash) {
|
||||
await this.userService.createWorkspaceMember(user);
|
||||
}
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
async verify(email: string): Promise<Verify> {
|
||||
|
Loading…
Reference in New Issue
Block a user