Skip to content

Commit 48c933f

Browse files
committed
fix exception when deleting allocations, closes pterodactyl#908
1 parent ffa09d8 commit 48c933f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
66
## v0.7.0-rc.2 (Derelict Dermodactylus)
77
### Fixed
88
* `[rc.1]` — Fixes exception thrown when revoking user sessions.
9+
* `[rc.1]` — Fixes exception that would occur when trying to delete allocations from a node.
910

1011
## v0.7.0-rc.1 (Derelict Dermodactylus)
1112
### Fixed

app/Http/Controllers/Admin/NodesController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,13 @@ public function updateSettings(NodeFormRequest $request, Node $node)
272272
/**
273273
* Removes a single allocation from a node.
274274
*
275+
* @param int $node
275276
* @param \Pterodactyl\Models\Allocation $allocation
276277
* @return \Illuminate\Http\Response
277278
*
278279
* @throws \Pterodactyl\Exceptions\Service\Allocation\ServerUsingAllocationException
279280
*/
280-
public function allocationRemoveSingle(Allocation $allocation): Response
281+
public function allocationRemoveSingle(int $node, Allocation $allocation): Response
281282
{
282283
$this->allocationDeletionService->handle($allocation);
283284

0 commit comments

Comments
 (0)