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 // TODO: cache user info
jitsu jitsu
.id( .id({
{ id: user.id,
id: user.id, email: user.email,
email: user.email, first_name: user.first_name,
first_name: user.first_name, last_name: user.last_name,
last_name: user.last_name, })
},
true
)
.then(() => { .then(() => {
jitsu.track(eventName, { jitsu.track(eventName, {
...extra, ...extra,