BUG FIX: Create workspace member if inviteHash exists (#3917)
Create workspace member if inviteHash exists
This commit is contained in:
@ -167,7 +167,13 @@ export class AuthService {
|
|||||||
defaultWorkspace: workspace,
|
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> {
|
async verify(email: string): Promise<Verify> {
|
||||||
|
|||||||
Reference in New Issue
Block a user