diff --git a/api/src/utils/zipped.ts b/api/src/utils/zipped.ts index f90f79a..44a70fa 100644 --- a/api/src/utils/zipped.ts +++ b/api/src/utils/zipped.ts @@ -28,7 +28,8 @@ export const extractJSONFromZip = async (zipFile: Express.Multer.File) => { for await (const entry of zip) { const fileName = entry.path as string - if (fileName.toUpperCase().endsWith('.JSON') && fileName === fileInZip) { + // grab the first json found in .zip + if (fileName.toUpperCase().endsWith('.JSON')) { fileContent = await entry.buffer() break } else {