From da1e2f71ec79e246029c544c1960ace3e73f11a7 Mon Sep 17 00:00:00 2001 From: Monalisha Mishra Date: Mon, 24 Jun 2024 20:50:44 +0530 Subject: [PATCH] fix: reverted restapi change --- packages/restapi/src/lib/chat/send.ts | 2 +- packages/restapi/src/lib/pushapi/chat.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/restapi/src/lib/chat/send.ts b/packages/restapi/src/lib/chat/send.ts index 84d26f9f1..55838da14 100644 --- a/packages/restapi/src/lib/chat/send.ts +++ b/packages/restapi/src/lib/chat/send.ts @@ -42,7 +42,7 @@ export const sendCore = async ( * 2. Takes care of deprecated fields */ const computedOptions = computeOptions(options); - const { messageType, messageObj, account, to, signer, pgpPrivateKey, env } = + let { messageType, messageObj, account, to, signer, pgpPrivateKey, env } = computedOptions; /** * Validate Input Options diff --git a/packages/restapi/src/lib/pushapi/chat.ts b/packages/restapi/src/lib/pushapi/chat.ts index d384a2132..e422ad1bb 100644 --- a/packages/restapi/src/lib/pushapi/chat.ts +++ b/packages/restapi/src/lib/pushapi/chat.ts @@ -149,7 +149,7 @@ export class Chat { reference?: string | null; } ) { - const reference: string | null = null; + let reference: string | null = null; const { threadHash, intent } = await PUSH_CHAT.conversationHash({ conversationId: target,