Browse Source

Fix: Increase default kept period

pull/623/head
Nelson Chan 3 years ago
parent
commit
03b07730d3
  1. 2
      server/jobs/clear-old-data.js
  2. 2
      src/pages/Settings.vue

2
server/jobs/clear-old-data.js

@ -2,7 +2,7 @@ const { log, exit, connectDb } = require("./util-worker");
const { R } = require("redbean-node");
const { setSetting, setting } = require("../util-server");
const DEFAULT_KEEP_PERIOD = 30;
const DEFAULT_KEEP_PERIOD = 180;
(async () => {
await connectDb();

2
src/pages/Settings.vue

@ -475,7 +475,7 @@ export default {
}
if (this.settings.keepDataPeriodDays === undefined) {
this.settings.keepDataPeriodDays = 30;
this.settings.keepDataPeriodDays = 180;
}
this.loaded = true;

Loading…
Cancel
Save