Skip to content

Commit

Permalink
Add eventOccurredTS to TwilioPayloadBase type
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpdiaz8 committed Apr 3, 2024
1 parent 6b50108 commit b5b8f3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const Liquid = new LiquidJs()

export interface TwilioPayloadBase extends MessagePayloadBase {
contentSid?: string
eventOccurredTS?: string
}

export abstract class TwilioMessageSender<TPayload extends TwilioPayloadBase> extends MessageSendPerformer<
Expand Down Expand Up @@ -121,7 +122,7 @@ export abstract class TwilioMessageSender<TPayload extends TwilioPayloadBase> ex
const customArgs: Record<string, string | undefined> = {
...this.payload.customArgs,
space_id: this.settings.spaceId,
event_occurred_ts: (this.payload as any)?.eventOccurredTS,
event_occurred_ts: this.payload?.eventOccurredTS,
__segment_internal_external_id_key__: externalIdType,
__segment_internal_external_id_value__: externalIdValue
}
Expand Down

0 comments on commit b5b8f3b

Please sign in to comment.