From 3347b69ea5a2e0603db7e5cfb357cfdf3fb961ff Mon Sep 17 00:00:00 2001 From: nicolasburtey Date: Wed, 1 May 2024 15:13:18 -0600 Subject: [PATCH] fix: need await for support chat messages (#4409) Co-authored-by: Nicolas Burtey --- core/api/src/app/support/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/api/src/app/support/chat.ts b/core/api/src/app/support/chat.ts index e38560d2bf..f9e6480669 100644 --- a/core/api/src/app/support/chat.ts +++ b/core/api/src/app/support/chat.ts @@ -12,7 +12,7 @@ const getMessages = async ({ supportChatId: SupportChatId accountId: AccountId }) => { - const messages = Assistant().getMessages(supportChatId) + const messages = await Assistant().getMessages(supportChatId) if (messages instanceof ChatAssistantNotFoundError) { await initializeSupportChat({ accountId }) return []