fix exception when deleting allocations, closes #908

This commit is contained in:
Dane Everitt 2018-02-03 12:22:10 -06:00
parent ffa09d81e2
commit 48c933fa0f
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
## v0.7.0-rc.2 (Derelict Dermodactylus) ## v0.7.0-rc.2 (Derelict Dermodactylus)
### Fixed ### Fixed
* `[rc.1]` — Fixes exception thrown when revoking user sessions. * `[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) ## v0.7.0-rc.1 (Derelict Dermodactylus)
### Fixed ### Fixed

View File

@ -272,12 +272,13 @@ class NodesController extends Controller
/** /**
* Removes a single allocation from a node. * Removes a single allocation from a node.
* *
* @param int $node
* @param \Pterodactyl\Models\Allocation $allocation * @param \Pterodactyl\Models\Allocation $allocation
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
* *
* @throws \Pterodactyl\Exceptions\Service\Allocation\ServerUsingAllocationException * @throws \Pterodactyl\Exceptions\Service\Allocation\ServerUsingAllocationException
*/ */
public function allocationRemoveSingle(Allocation $allocation): Response public function allocationRemoveSingle(int $node, Allocation $allocation): Response
{ {
$this->allocationDeletionService->handle($allocation); $this->allocationDeletionService->handle($allocation);