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