Skip to content

Commit

Permalink
👽️ Use ms for crisp last active timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 27, 2024
1 parent 79822d4 commit 2f557cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/api/util/crisp.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ async function upsertCrispProfile(email, { displayName, wallet, loginMethod }) {
person: {
nickname: displayName || wallet,
},
active: Math.floor(Date.now() / 1000),
active: Date.now(),
});
} else {
await CrispClient.website.addNewPeopleProfile(CRISP_WEBSITE_ID, {
email,
person: {
nickname: displayName || wallet || email.split('@')[0],
},
active: Math.floor(Date.now() / 1000),
active: Date.now(),
});
}
await CrispClient.website.updatePeopleData(CRISP_WEBSITE_ID, email, {
Expand Down

0 comments on commit 2f557cd

Please sign in to comment.