From 0c6d3b128a6cf0cead4132218f196e637c515eb3 Mon Sep 17 00:00:00 2001 From: janis Date: Thu, 21 May 2026 16:52:16 +0000 Subject: [PATCH] src/Api/Router.php aktualisiert --- src/Api/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Router.php b/src/Api/Router.php index 383efe8..22b5c3c 100644 --- a/src/Api/Router.php +++ b/src/Api/Router.php @@ -549,8 +549,8 @@ class Router private function runRetention(): array { $body = json_decode(file_get_contents('php://input'), true); - $logDays = (int) ($body['log_days'] ?? 30); - $alertDays = (int) ($body['alert_days'] ?? 90); + $logDays = (int) ($body['log_days'] ?? 14); + $alertDays = (int) ($body['alert_days'] ?? 30); $result = $this->repo->purgeOldData($logDays, $alertDays); $this->repo->logAudit('retention_purge', 'system', null, json_encode($result), $this->user()); return $result;