fix: type
This commit is contained in:
1 parent
87fd964374
commit
8c2d61de06
1 file changed
+1
-1
+1
-1
@@ -428,7 +428,7 @@ app.post('/api/download', requireAuth, async (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.delete('/api/torrent/:hash', 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'
|
const deleteFiles = req.query.deleteFiles === 'true'
|
||||||
if (!hash) { res.status(400).json({ error: 'hash requis' }); return }
|
if (!hash) { res.status(400).json({ error: 'hash requis' }); return }
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user