From 2c4762b57f32e0f2748fd5ba72ed9ad0d4782605 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 7 Aug 2023 15:37:31 +0200 Subject: [PATCH] :ambulance: Add missing await on executeGroup --- apps/viewer/src/features/chat/helpers/continueBotFlow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/viewer/src/features/chat/helpers/continueBotFlow.ts b/apps/viewer/src/features/chat/helpers/continueBotFlow.ts index 1ccae6099..0dbf1e658 100644 --- a/apps/viewer/src/features/chat/helpers/continueBotFlow.ts +++ b/apps/viewer/src/features/chat/helpers/continueBotFlow.ts @@ -145,7 +145,8 @@ export const continueBotFlow = formattedReply !== reply ? formattedReply : undefined, } - const chatReply = executeGroup(newSessionState)(nextGroup.group) + const chatReply = await executeGroup(newSessionState)(nextGroup.group) + return { ...chatReply, lastMessageNewFormat: