diff --git a/backend/api/src/get-last-messages.ts b/backend/api/src/get-last-messages.ts index 6f9e383f..d415d9c9 100644 --- a/backend/api/src/get-last-messages.ts +++ b/backend/api/src/get-last-messages.ts @@ -23,6 +23,7 @@ export const getLastMessages: APIHandler<'get-last-messages'> = async (props, au convertPrivateChatMessage, ) + // Required to parse to number? If so, should prob create a helper to reuse in other places return messages.reduce( (acc, msg) => { acc[Number(msg.channelId)] = msg