From 150553d4205938e750d8434db6078a5326055f71 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:37:19 +0530 Subject: [PATCH] fix: tracker not creating user alias (#683) --- apps/app/pages/api/track-event.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/apps/app/pages/api/track-event.ts b/apps/app/pages/api/track-event.ts index 9112faeea..c9255d215 100644 --- a/apps/app/pages/api/track-event.ts +++ b/apps/app/pages/api/track-event.ts @@ -37,15 +37,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) // TODO: cache user info jitsu - .id( - { - id: user.id, - email: user.email, - first_name: user.first_name, - last_name: user.last_name, - }, - true - ) + .id({ + id: user.id, + email: user.email, + first_name: user.first_name, + last_name: user.last_name, + }) .then(() => { jitsu.track(eventName, { ...extra,