From f7b228065e8d0b9003f5d0c440e5df5da1edd50a Mon Sep 17 00:00:00 2001 From: Mustafa Shakir Date: Fri, 19 May 2023 19:05:38 +0530 Subject: [PATCH] @novu/node: update broadcast payload options --- packages/node/src/lib/events/events.interface.ts | 2 +- packages/node/src/lib/events/events.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node/src/lib/events/events.interface.ts b/packages/node/src/lib/events/events.interface.ts index 3e9dd8ed7ca..1a12e4e2a67 100644 --- a/packages/node/src/lib/events/events.interface.ts +++ b/packages/node/src/lib/events/events.interface.ts @@ -18,12 +18,12 @@ export type TriggerRecipientsPayload = export interface IBroadcastPayloadOptions { payload: ITriggerPayload; overrides?: ITriggerOverrides; + transactionId?: string; } export interface ITriggerPayloadOptions extends IBroadcastPayloadOptions { to: TriggerRecipientsPayload; actor?: TriggerRecipientSubscriber; - transactionId?: string; } export interface ITriggerPayload { diff --git a/packages/node/src/lib/events/events.ts b/packages/node/src/lib/events/events.ts index 07811b6b309..fb0859c17f5 100644 --- a/packages/node/src/lib/events/events.ts +++ b/packages/node/src/lib/events/events.ts @@ -26,6 +26,7 @@ export class Events extends WithHttp { payload: { ...data?.payload, }, + transactionId: data.transactionId, overrides: data.overrides || {}, }); }