fix: download db path

path changed with folder restructure
This commit is contained in:
cv
2021-10-24 21:28:32 +02:00
parent 541117b31b
commit 33d8cbef08
+1 -1
View File
@@ -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) {