Fixed Error when no IDs are present

This commit is contained in:
2025-09-20 19:07:03 +02:00
parent 07b914675d
commit 8480ce1512

View File

@@ -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 || []