From 038da8e47a492484639faa6fec7b14945a8d0070 Mon Sep 17 00:00:00 2001 From: Yogesh Pawar Date: Thu, 1 Aug 2024 20:14:27 +0530 Subject: [PATCH] Added connection details at top level for reuse connection Signed-off-by: Yogesh Pawar --- src/events/ReuseConnectionEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/ReuseConnectionEvents.ts b/src/events/ReuseConnectionEvents.ts index 7f4c8d25..aeb088b2 100644 --- a/src/events/ReuseConnectionEvents.ts +++ b/src/events/ReuseConnectionEvents.ts @@ -9,7 +9,7 @@ import { sendWebhookEvent } from './WebhookEvent' export const reuseConnectionEvents = async (agent: Agent, config: ServerConfig) => { agent.events.on(OutOfBandEventTypes.HandshakeReused, async (event: HandshakeReusedEvent) => { const body = { - connectionRecord: event.payload.connectionRecord.toJSON(), + ...event.payload.connectionRecord.toJSON(), outOfBandRecord: event.payload.outOfBandRecord.toJSON(), reuseThreadId: event.payload.reuseThreadId, ...event.metadata,