From e8bc9cda1d9faabc86107c1f70aeaac34d583944 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 7 Mar 2026 13:31:05 +0100 Subject: [PATCH] Add comment --- backend/api/src/get-last-messages.ts | 1 + 1 file changed, 1 insertion(+) 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