Cleanup allocation repository
This commit is contained in:
parent
9410a54c98
commit
7b57d65edf
4 changed files with 27 additions and 79 deletions
|
@ -159,7 +159,7 @@ class BuildModificationService
|
|||
|
||||
// Handle removal of allocations from this server.
|
||||
if (array_key_exists('remove_allocations', $data) && ! empty($data['remove_allocations'])) {
|
||||
$assigned = $this->allocationRepository->getAssignedAllocationIds($server->id);
|
||||
$assigned = $server->allocations->pluck('id')->toArray();
|
||||
|
||||
$updateIds = [];
|
||||
foreach ($data['remove_allocations'] as $allocation) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue