From 05eefe866b0346ac1620db5eefe0fbd8edebb5d7 Mon Sep 17 00:00:00 2001 From: Anderson Feitosa Date: Thu, 12 Jan 2023 12:02:16 -0300 Subject: [PATCH] FEAT: add suffix on email --- src/modules/mixpanel/mixpanel.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/mixpanel/mixpanel.controller.ts b/src/modules/mixpanel/mixpanel.controller.ts index bf94b0e..6afb468 100644 --- a/src/modules/mixpanel/mixpanel.controller.ts +++ b/src/modules/mixpanel/mixpanel.controller.ts @@ -60,7 +60,9 @@ export class MixpanelController { $first_name: firstName, $last_name: lastName, $name: this.getFullName(firstName, lastName), - $email: user.username, + $email: user.username.includes('@') + ? user.username + : user.username + '@dadosfera.ai', customer_name: user.customer_name, });