From 10bf1240dbba0c8c155b5bfb1e3f7a6c71e2b502 Mon Sep 17 00:00:00 2001 From: Kevin Foley Date: Sun, 28 Sep 2025 16:04:07 -0400 Subject: [PATCH 1/2] fix: handle undefined individual channels in groupBy result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents TypeError when individual property is undefined from groupBy function by adding null coalescing operator similar to group and company channels. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index bcb5ace..ea3356f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -66,7 +66,7 @@ export default async function Home({ }); // For individual channels, client id is membershipEntityId and we need to get client detail based on that - const invividualChannels = individual.map((channel) => { + const invividualChannels = (individual || []).map((channel) => { const clientsChannels = clientsMap.get(channel.membershipEntityId); return { From d6a80bb6fb7afd02eb55dc5ae0fd2ab56981afda Mon Sep 17 00:00:00 2001 From: Kevin Foley Date: Sun, 28 Sep 2025 16:24:53 -0400 Subject: [PATCH 2/2] chore: update maxDuration --- .nvmrc | 2 +- package.json | 3 +++ src/app/page.tsx | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.nvmrc b/.nvmrc index 05cc650..94a1338 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1,2 +1,2 @@ -v20.11.1 +v22.20.0 diff --git a/package.json b/package.json index 115f9b9..60c5509 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "message-exporter", "version": "0.1.0", + "engines": { + "node": ">=22.0.0" + }, "scripts": { "dev": "COPILOT_ENV=local next dev", "build": "next build", diff --git a/src/app/page.tsx b/src/app/page.tsx index ea3356f..3ba8861 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,8 +11,7 @@ import { const apiKey = need(process.env.COPILOT_API_KEY); -// One minute -export const maxDuration = 60000; +export const maxDuration = 300; export default async function Home({ searchParams,