api(remote): fix oops in BackupStatusController

This commit is contained in:
Matthew Penner 2024-04-11 10:42:18 -06:00
parent f671046947
commit b1fa3927c1
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ class BackupStatusController extends Controller
/** @var \Pterodactyl\Models\Node $node */ /** @var \Pterodactyl\Models\Node $node */
$node = $request->attributes->get('node'); $node = $request->attributes->get('node');
/** @var \Pterodactyl\Models\Backup $backup */ /** @var \Pterodactyl\Models\Backup $model */
$backup = Backup::query() $model = Backup::query()
->where('node_id', $node->id) ->where('node_id', $node->id)
->where('uuid', $backup) ->where('uuid', $backup)
->firstOrFail(); ->firstOrFail();