mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-09 02:42:07 +00:00
Fix: Increase default kept period
This commit is contained in:
parent
ac80631bcd
commit
03b07730d3
@ -2,7 +2,7 @@ const { log, exit, connectDb } = require("./util-worker");
|
|||||||
const { R } = require("redbean-node");
|
const { R } = require("redbean-node");
|
||||||
const { setSetting, setting } = require("../util-server");
|
const { setSetting, setting } = require("../util-server");
|
||||||
|
|
||||||
const DEFAULT_KEEP_PERIOD = 30;
|
const DEFAULT_KEEP_PERIOD = 180;
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await connectDb();
|
await connectDb();
|
||||||
|
@ -475,7 +475,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.settings.keepDataPeriodDays === undefined) {
|
if (this.settings.keepDataPeriodDays === undefined) {
|
||||||
this.settings.keepDataPeriodDays = 30;
|
this.settings.keepDataPeriodDays = 180;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user