mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2754 from omnivore-app/fix/api-rm-identify-call
Remove identify call from backend
This commit is contained in:
commit
4cd4a18aeb
1 changed files with 0 additions and 26 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue