fix: config path /config/config to /config

This commit is contained in:
MasutaYunikon committed 2026-03-20 20:30:23 +01:00
1 parent 0d64a66977
commit 4d319f97bc
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -403,7 +403,7 @@ app.get('/api/downloads', requireAuth, async (_req, res) => {
let torrentFinal: any[] = []
try {
const tfPath = path.join(DATA_DIR, 'config', 'torrent_final.json')
const tfPath = path.join(DATA_DIR, 'torrent_final.json')
if (fs.existsSync(tfPath))
torrentFinal = JSON.parse(fs.readFileSync(tfPath, 'utf-8'))
} catch {}