TS fixes
This commit is contained in:
@@ -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 || []
|
||||
|
||||
// -------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user