mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-12 03:13:45 +02:00
fix exception when deleting allocations, closes #908
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user