From 33d8cbef0899af5f100b55ce2670bf85e357054e Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Sun, 24 Oct 2021 21:28:32 +0200 Subject: [PATCH] fix: download db path path changed with folder restructure --- server/src/controllers/ontimeController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/controllers/ontimeController.js b/server/src/controllers/ontimeController.js index 848cdf619..e3e38cc35 100644 --- a/server/src/controllers/ontimeController.js +++ b/server/src/controllers/ontimeController.js @@ -94,7 +94,7 @@ async function parsev1(jsonData) { // Returns - export const dbDownload = async (req, res) => { const fileTitle = getEventTitle() || 'ontime events'; - const dbFile = path.resolve(__dirname, '../', 'data/db.json'); + const dbFile = path.resolve(__dirname, '../../', 'data/db.json'); res.download(dbFile, `${fileTitle}.json`, (err) => { if (err) {