From 8c2d61de066a1265e498c91c991dd6fe24fa57e2 Mon Sep 17 00:00:00 2001 From: MasutaYunikon Date: Sat, 11 Apr 2026 13:02:55 +0200 Subject: [PATCH] fix: type --- server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index c56782a..8dfd2e6 100644 --- a/server/index.ts +++ b/server/index.ts @@ -428,7 +428,7 @@ app.post('/api/download', requireAuth, async (req, res) => { }) app.delete('/api/torrent/:hash', requireAuth, async (req, res) => { - const hash = req.params.hash + const hash = req.params.hash as string const deleteFiles = req.query.deleteFiles === 'true' if (!hash) { res.status(400).json({ error: 'hash requis' }); return } try {