mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Added autosaveInterval to the config.json.dist
This commit is contained in:
1 parent
d913d59d72
commit
d72a45cc66
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -51,5 +51,7 @@
|
|||||||
"msBetweenCommands": 10,
|
"msBetweenCommands": 10,
|
||||||
"allowRemoteCommandExecution": true,
|
"allowRemoteCommandExecution": true,
|
||||||
"enableCrossServerShout": 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
|
||||||
}
|
}
|
||||||
@@ -426,7 +426,7 @@ app.post("/api/uploadMod", authenticate.middleware, function(req,res) {
|
|||||||
endpointHitCounter.labels(req.route.path).inc();
|
endpointHitCounter.labels(req.route.path).inc();
|
||||||
let reqStartTime = Date.now();
|
let reqStartTime = Date.now();
|
||||||
if (req.files && req.files.file) {
|
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) {
|
req.files.file.mv(path.resolve(config.databaseDirectory, "masterMods", req.files.file.name), function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
res.status(500).send(err);
|
res.status(500).send(err);
|
||||||
|
|||||||
Reference in new issue
Block a user