mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Backup Rotation - Comment change
This commit is contained in:
@@ -122,7 +122,7 @@ class InitiateBackupService
|
||||
throw new TooManyBackupsException($server->backup_limit);
|
||||
}
|
||||
|
||||
// Remove latest backup
|
||||
// Remove oldest backup
|
||||
$lastBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first();
|
||||
$this->deleteBackupService->handle($lastBackup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user