fix: config path /config/config to /config
This commit is contained in:
1 parent
0d64a66977
commit
4d319f97bc
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -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 {}
|
||||
|
||||
Reference in new issue
Block a user