fix: tracker not creating user alias (#683)

This commit is contained in:
Dakshesh Jain 2023-04-03 16:37:19 +05:30 committed by GitHub
parent 1b30e4b57f
commit 150553d420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,