From 48c933fa0fc6d6406ed7699d7209c3fa54dab42d Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 3 Feb 2018 12:22:10 -0600 Subject: [PATCH] fix exception when deleting allocations, closes #908 --- CHANGELOG.md | 1 + app/Http/Controllers/Admin/NodesController.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f0e62f2b..b415433d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. ## v0.7.0-rc.2 (Derelict Dermodactylus) ### Fixed * `[rc.1]` — Fixes exception thrown when revoking user sessions. +* `[rc.1]` — Fixes exception that would occur when trying to delete allocations from a node. ## v0.7.0-rc.1 (Derelict Dermodactylus) ### Fixed diff --git a/app/Http/Controllers/Admin/NodesController.php b/app/Http/Controllers/Admin/NodesController.php index 511eb4393..a67abf9d1 100644 --- a/app/Http/Controllers/Admin/NodesController.php +++ b/app/Http/Controllers/Admin/NodesController.php @@ -272,12 +272,13 @@ class NodesController extends Controller /** * Removes a single allocation from a node. * + * @param int $node * @param \Pterodactyl\Models\Allocation $allocation * @return \Illuminate\Http\Response * * @throws \Pterodactyl\Exceptions\Service\Allocation\ServerUsingAllocationException */ - public function allocationRemoveSingle(Allocation $allocation): Response + public function allocationRemoveSingle(int $node, Allocation $allocation): Response { $this->allocationDeletionService->handle($allocation);