From 52a3d352457610a1c0995c23ca73ebfc21e397b8 Mon Sep 17 00:00:00 2001 From: makearmy Date: Thu, 2 Oct 2025 21:04:10 -0400 Subject: [PATCH] build error fix --- app/api/submit/settings/route.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/submit/settings/route.ts b/app/api/submit/settings/route.ts index 296df9b9..1ed685b2 100644 --- a/app/api/submit/settings/route.ts +++ b/app/api/submit/settings/route.ts @@ -87,7 +87,7 @@ function folderIdFor( kind: "photo" | "screen" | "notes" ): string | undefined { const E = process.env; - const map = { + const map: Record = { settings_co2gal: { photo: E.DX_FOLDER_GALVO_PHOTOS, screen: E.DX_FOLDER_GALVO_SCREENS, @@ -108,8 +108,7 @@ function folderIdFor( screen: E.DX_FOLDER_UV_SCREENS, notes: E.DX_FOLDER_UV_NOTES, }, - } as const; - // @ts-expect-error narrow map index + }; return map[target]?.[kind]; }