From b1fa3927c17b7c34c3b12aa6e8825a3de1a81d04 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 11 Apr 2024 10:42:18 -0600 Subject: [PATCH] api(remote): fix oops in BackupStatusController --- .../Controllers/Api/Remote/Backups/BackupStatusController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php b/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php index 042fbd0506..75f039d285 100644 --- a/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php +++ b/app/Http/Controllers/Api/Remote/Backups/BackupStatusController.php @@ -34,8 +34,8 @@ public function index(ReportBackupCompleteRequest $request, string $backup): Jso /** @var \Pterodactyl\Models\Node $node */ $node = $request->attributes->get('node'); - /** @var \Pterodactyl\Models\Backup $backup */ - $backup = Backup::query() + /** @var \Pterodactyl\Models\Backup $model */ + $model = Backup::query() ->where('node_id', $node->id) ->where('uuid', $backup) ->firstOrFail();