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 {