From c85732dcd9c11ca705625d66570f68111280aafb Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Thu, 23 Nov 2023 18:22:48 +0530 Subject: [PATCH] fix: signature issue --- packages/restapi/src/lib/chat/createGroup.ts | 2 +- packages/restapi/src/lib/chat/updateGroup.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/restapi/src/lib/chat/createGroup.ts b/packages/restapi/src/lib/chat/createGroup.ts index 3632603e5..6567ad5ec 100644 --- a/packages/restapi/src/lib/chat/createGroup.ts +++ b/packages/restapi/src/lib/chat/createGroup.ts @@ -106,7 +106,7 @@ export const createGroupCore = async ( groupName: groupName, groupDescription: groupDescription == undefined ? null : groupDescription, members: convertedMembers, - groupImage: groupImage, + groupImage: groupImage == undefined ? null : groupImage, admins: convertedAdmins, isPublic: isPublic, contractAddressNFT: diff --git a/packages/restapi/src/lib/chat/updateGroup.ts b/packages/restapi/src/lib/chat/updateGroup.ts index b8967095d..15fe48085 100644 --- a/packages/restapi/src/lib/chat/updateGroup.ts +++ b/packages/restapi/src/lib/chat/updateGroup.ts @@ -100,8 +100,8 @@ export const updateGroupCore = async ( const convertedAdmins = await Promise.all(convertedAdminsPromise); const bodyToBeHashed = { groupName: groupName, - groupDescription: groupDescription, - groupImage: groupImage, + groupDescription: groupDescription == undefined ? null : groupDescription, + groupImage: groupImage == undefined ? null : groupImage, members: convertedMembers, admins: convertedAdmins, chatId: chatId,