Backup Rotation - Comment change
This commit is contained in:
parent
7b8322e9c9
commit
e6a4a17922
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue