From 94df98e5d0686c9293c3cfd457a86ae79254578c Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 23 Jun 2020 00:01:23 -0400 Subject: [PATCH] Fixed bug that prevented subscription archives from being downloaded if their path was express as a full path --- backend/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 0115b14..95b36b6 100644 --- a/backend/app.js +++ b/backend/app.js @@ -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);