Push event for user signup (#5837)
Need to setup Twenty as a CRM for Twenty the Twenty team
This commit is contained in:
@ -24,4 +24,21 @@ export class TelemetryListener {
|
||||
'',
|
||||
);
|
||||
}
|
||||
|
||||
@OnEvent('user.signup')
|
||||
async handleUserSignup(payload: ObjectRecordCreateEvent<any>) {
|
||||
await this.analyticsService.create(
|
||||
{
|
||||
type: 'track',
|
||||
data: {
|
||||
eventName: 'user.signup',
|
||||
},
|
||||
},
|
||||
payload.userId,
|
||||
payload.workspaceId,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user