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);