30 instead of 7 days

This commit is contained in:
Miodec 2022-08-22 14:27:36 +02:00
parent 825d265d7d
commit 6f41db5575

View file

@ -4,7 +4,7 @@ import Logger from "../utils/logger";
import { getCachedConfiguration } from "../init/configuration";
const CRON_SCHEDULE = "0 0 0 * * *";
const LOG_MAX_AGE_DAYS = 7;
const LOG_MAX_AGE_DAYS = 30;
const LOG_MAX_AGE_MILLISECONDS = LOG_MAX_AGE_DAYS * 24 * 60 * 60 * 1000;
async function deleteOldLogs(): Promise<void> {