diff --git a/src/routes/files.ts b/src/routes/files.ts index 0467766..5c7ac9d 100644 --- a/src/routes/files.ts +++ b/src/routes/files.ts @@ -107,6 +107,7 @@ export default async function fileRoutes(server: FastifyInstance) { if (!tenantId) return reply.code(401).send({ error: "Unauthorized" }) const list = await server.db + //@ts-ignore .select({ ...files, createddocument: createddocuments, @@ -138,6 +139,7 @@ export default async function fileRoutes(server: FastifyInstance) { server.post("/files/download/:id?", async (req, reply) => { try { const { id } = req.params as { id?: string } + //@ts-ignore const ids = req.body?.ids || [] // -------------------------------------------------