Fixed bug that prevented subscription archives from being downloaded if their path was express as a full path

pull/141/head
Isaac Grynsztein 5 years ago
parent 2998562655
commit 94df98e5d0

@ -2537,7 +2537,7 @@ app.post('/api/downloadArchive', async (req, res) => {
let sub = req.body.sub;
let archive_dir = sub.archive;
let full_archive_path = path.join(__dirname, archive_dir, 'archive.txt');
let full_archive_path = path.join(archive_dir, 'archive.txt');
if (fs.existsSync(full_archive_path)) {
res.sendFile(full_archive_path);

Loading…
Cancel
Save