mirror of
https://github.com/pterodactyl/panel.git
synced 2025-01-31 19:01:35 +01:00
Backup Rotation - Variable name changed
This commit is contained in:
parent
e6a4a17922
commit
ebc8d40db8
@ -123,8 +123,8 @@ class InitiateBackupService
|
||||
}
|
||||
|
||||
// Remove oldest backup
|
||||
$lastBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first();
|
||||
$this->deleteBackupService->handle($lastBackup);
|
||||
$oldestBackup = $server->backups()->where('is_successful', true)->orderByDesc('created_at')->first();
|
||||
$this->deleteBackupService->handle($oldestBackup);
|
||||
}
|
||||
|
||||
return $this->connection->transaction(function () use ($server, $name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user