From 8480ce1512324b2d62fd1c1d5b8fefeb4f784cdd Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Sat, 20 Sep 2025 19:07:03 +0200 Subject: [PATCH] Fixed Error when no IDs are present --- src/routes/files.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/files.ts b/src/routes/files.ts index cba3da0..5ec8d04 100644 --- a/src/routes/files.ts +++ b/src/routes/files.ts @@ -125,6 +125,7 @@ export default async function fileRoutes(server: FastifyInstance) { server.post("/files/download/:id?", async (req, reply) => { const { id } = req.params as { id?: string } + // @ts-ignore const ids = req.body?.ids || []