Added autosaveInterval to the config.json.dist

This commit is contained in:
Daniel Vestøl committed 2018-07-24 23:01:51 +02:00
1 parent d913d59d72
commit d72a45cc66
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -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
}
+1 -1
View File
@@ -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);