Backup Rotation - Comment change

This commit is contained in:
Gonzalo Chavez 2020-11-11 16:02:39 -03:00
parent 7b8322e9c9
commit e6a4a17922

View file

@ -122,7 +122,7 @@ class InitiateBackupService
throw new TooManyBackupsException($server->backup_limit); throw new TooManyBackupsException($server->backup_limit);
} }
// Remove latest backup // Remove oldest backup
$lastBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first(); $lastBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first();
$this->deleteBackupService->handle($lastBackup); $this->deleteBackupService->handle($lastBackup);
} }