Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MixailE committed Nov 8, 2023
1 parent 9c9a309 commit 0a7b155
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/helpers/sendFirebaseNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ export default async function ({
}
console.error(errorCode, response.error)
})
const params =
type === 'newpost'
? {
feedId,
postId,
}
: {}
await mixpanel.track('NotificationStats', {
...params,
distinct_id: 'notification server',
...(type === 'newpost' && {
feedId,
postId,
}),
isDev: !env.PRODUCTION,
successful,
type,
Expand Down

0 comments on commit 0a7b155

Please sign in to comment.