Skip to content

Commit

Permalink
fix: need await for support chat messages (#4409)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Burtey <[email protected]>
  • Loading branch information
nicolasburtey and Nicolas Burtey authored May 1, 2024
1 parent 7232e18 commit 3347b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/src/app/support/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit 3347b69

Please sign in to comment.