From d72a45cc662a136680d25dbcf89ae162ea628b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Tue, 24 Jul 2018 23:01:51 +0200 Subject: [PATCH] Added autosaveInterval to the config.json.dist --- config.json.dist | 4 +++- master.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.json.dist b/config.json.dist index ade686b6..ca4c19de 100644 --- a/config.json.dist +++ b/config.json.dist @@ -51,5 +51,7 @@ "msBetweenCommands": 10, "allowRemoteCommandExecution": true, "enableCrossServerShout": true, - "mirrorAllChat": false + "mirrorAllChat": false, + "__comment7": "Autosave interval for items in the master storage in milliseconds. Defaults to one minute when set to 0 or not set." + "autosaveInterval": 600000 } diff --git a/master.js b/master.js index 81cfd915..6f4c3cd8 100644 --- a/master.js +++ b/master.js @@ -426,7 +426,7 @@ app.post("/api/uploadMod", authenticate.middleware, function(req,res) { endpointHitCounter.labels(req.route.path).inc(); let reqStartTime = Date.now(); if (req.files && req.files.file) { - console.log(req.files.file); + // console.log(req.files.file); req.files.file.mv(path.resolve(config.databaseDirectory, "masterMods", req.files.file.name), function(err) { if (err) { res.status(500).send(err);