Backup Rotation - Variable name changed

This commit is contained in:
Gonzalo Chavez 2020-11-11 16:03:57 -03:00
parent e6a4a17922
commit ebc8d40db8
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ class InitiateBackupService
} }
// Remove oldest backup // Remove oldest backup
$lastBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first(); $oldestBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first();
$this->deleteBackupService->handle($lastBackup); $this->deleteBackupService->handle($oldestBackup);
} }
return $this->connection->transaction(function () use ($server, $name) { return $this->connection->transaction(function () use ($server, $name) {