Remove identify call from backend

This commit is contained in:
Jackson Harper 2023-09-12 09:53:19 +08:00
parent 70db82d938
commit 2a3214e393

View file

@ -36,32 +36,6 @@ export class CreateIntercomAccount
}
}
@EventSubscriber()
export class IdentifySegmentUser implements EntitySubscriberInterface<Profile> {
listenTo() {
return Profile
}
afterInsert(event: InsertEvent<Profile>): Promise<void> {
try {
const profile = event.entity
analytics.identify({
userId: profile.user.id,
traits: {
name: profile.user.name,
email: profile.user.email,
source: profile.user.source,
env: env.server.apiEnv,
},
})
} catch (error) {
logger.info('error in sign up', error)
}
return Promise.resolve()
}
}
@EventSubscriber()
export class PublishNewUserEvent implements EntitySubscriberInterface<Profile> {
listenTo() {