fix exception when deleting allocations, closes #908
This commit is contained in:
parent
ffa09d81e2
commit
48c933fa0f
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue