From dc0e3823b50f8435fcd5807cc4c5e2c48a0f16b3 Mon Sep 17 00:00:00 2001 From: ra100 Date: Sun, 17 Nov 2019 23:39:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20filepaths=20after=20moving?= =?UTF-8?q?=20to=20subfolders=20#46?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appinfo.js | 2 +- index.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/appinfo.js b/appinfo.js index 5efcfde50..6fa4aa474 100644 --- a/appinfo.js +++ b/appinfo.js @@ -10,7 +10,7 @@ var AppInfo = { if (storageFile.content) return Promise.resolve(storageFile); else if (storageFile.url) - return fileGetter("apps/"+storageFile.url).then(content => { + return fileGetter(`apps/${app.id}/${storageFile.url}`).then(content => { return { name : storageFile.name, content : content, diff --git a/index.js b/index.js index 5d3b7834e..7653a077b 100644 --- a/index.js +++ b/index.js @@ -73,7 +73,7 @@ function handleCustomApp(app) {