fix: type

This commit is contained in:
MasutaYunikon committed 2026-04-11 13:02:55 +02:00
1 parent 87fd964374
commit 8c2d61de06
1 file changed
+1 -1
+1 -1
View File
@@ -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 {