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" })
|
if (!tenantId) return reply.code(401).send({ error: "Unauthorized" })
|
||||||
|
|
||||||
const list = await server.db
|
const list = await server.db
|
||||||
|
//@ts-ignore
|
||||||
.select({
|
.select({
|
||||||
...files,
|
...files,
|
||||||
createddocument: createddocuments,
|
createddocument: createddocuments,
|
||||||
@@ -138,6 +139,7 @@ export default async function fileRoutes(server: FastifyInstance) {
|
|||||||
server.post("/files/download/:id?", async (req, reply) => {
|
server.post("/files/download/:id?", async (req, reply) => {
|
||||||
try {
|
try {
|
||||||
const { id } = req.params as { id?: string }
|
const { id } = req.params as { id?: string }
|
||||||
|
//@ts-ignore
|
||||||
const ids = req.body?.ids || []
|
const ids = req.body?.ids || []
|
||||||
|
|
||||||
// -------------------------------------------------
|
// -------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user