Skip to content

Commit

Permalink
Merge pull request #6 from tgowing/patch-2
Browse files Browse the repository at this point in the history
Allow the payload to set the event id
  • Loading branch information
simonabadoiu authored Aug 11, 2023
2 parents 1a5d8d0 + cf94110 commit a802de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const getBaseRequestBody = (
settings: ComponentSettings
) => {
const { client, payload } = event
const eventId = String(Math.round(Math.random() * 100000000000000000))
const eventId = payload.event_id || String(Math.round(Math.random() * 100000000000000000))

Check failure on line 27 in src/track.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Insert `⏎···`

const body: { [k: string]: any } = {

Check warning on line 29 in src/track.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Unexpected any. Specify a different type
event:
Expand Down

0 comments on commit a802de4

Please sign in to comment.