Fixed Error when no IDs are present
This commit is contained in:
@@ -125,7 +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 }
|
||||||
|
|
||||||
const { ids } = req.body as { ids: string[] }
|
const ids = req.body?.ids || []
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user