Push event for user signup (#5837)
Need to setup Twenty as a CRM for Twenty the Twenty team
This commit is contained in:
@ -34,6 +34,13 @@ export class UserWorkspaceService extends TypeOrmQueryService<UserWorkspace> {
|
||||
workspaceId,
|
||||
});
|
||||
|
||||
const payload = new ObjectRecordCreateEvent<UserWorkspace>();
|
||||
|
||||
payload.workspaceId = workspaceId;
|
||||
payload.userId = userId;
|
||||
|
||||
this.eventEmitter.emit('user.signup', payload);
|
||||
|
||||
return this.userWorkspaceRepository.save(userWorkspace);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user