Skip to content

Commit

Permalink
fix: payload type
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng committed May 24, 2021
1 parent 9d1cd1b commit a34f025
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const NATIVE = {

const payload = {
...event,
type: event.type ?? 'event',
message: {
message: event.message,
},
Expand All @@ -55,7 +54,7 @@ export const NATIVE = {
const item = {
content_type: 'application/json',
length,
type: payload.type,
type: payload.type ?? 'event',
};

const itemString = JSON.stringify(item);
Expand Down

0 comments on commit a34f025

Please sign in to comment.