From 179b5d3034bad3cf06a1cb46096ae68e67860f18 Mon Sep 17 00:00:00 2001 From: Vincent Le Quang Date: Tue, 31 May 2022 22:52:56 -0700 Subject: [PATCH] cr --- src/server-handler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server-handler.js b/src/server-handler.js index ff19118..9cc320d 100644 --- a/src/server-handler.js +++ b/src/server-handler.js @@ -4,7 +4,7 @@ const bodyParser = require('body-parser'); const { dirname } = require('path'); const appRoot = require('app-root-path'); -const appDir = appRoot; +const appDir = appRoot.path; class ServerHandler { constructor(app, readOnly, path, serverPath) { @@ -16,7 +16,6 @@ class ServerHandler { }); if (canWrite) { - console.log(appDir, dataPath, path); if (!fs.existsSync(dirname(`${appDir}/${dataPath}/${path}`))) { fs.mkdirSync(dirname(`${appDir}/${dataPath}/${path}`)); }