Fixed Error when no IDs are present
This commit is contained in:
@@ -125,6 +125,7 @@ export default async function fileRoutes(server: FastifyInstance) {
|
|||||||
server.post("/files/download/:id?", async (req, reply) => {
|
server.post("/files/download/:id?", async (req, reply) => {
|
||||||
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