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]; }