Stale-backup notification: "No successful backup to … yet" instead of "since never"

This commit is contained in:
2026-10-12 11:32:42 +02:00
parent 9c06ab2841
commit 30a250bc11
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ final class AlertService {
}
$this->appConfig->setValueString(Application::APP_ID, $key, date('Y-m-d'));
$this->notifyAdmins('backup_stale', 'stale-' . $target->getId() . '-' . date('Y-m-d'),
['target' => $target->getName(), 'since' => $last ? date('Y-m-d H:i', $lastTime) : 'never']);
['target' => $target->getName(), 'since' => $last ? date('Y-m-d H:i', $lastTime) : '']);
}
private function notifyAdmins(string $subject, string $objectId, array $params): void {