diff --git a/src/wrapper.ts b/src/wrapper.ts index dd1a99cc..9ca9673c 100644 --- a/src/wrapper.ts +++ b/src/wrapper.ts @@ -33,7 +33,6 @@ export const NATIVE = { const payload = { ...event, - type: event.type ?? 'event', message: { message: event.message, }, @@ -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);