Skip to content

Commit 2198269

Browse files
committed
Fix allocations requiring an alias when generated via API.
1 parent 58796e7 commit 2198269

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ value when showing an error state.
1414
error encountered during creation or update.
1515
* Two-factor tokens generated when a company name has a space in it will now properly be parsed on iOS authenticator devices.
1616
* Fixed 500 error when trying to request subuser's from a server in the application API.
17+
* Creating a node allocation via the API no longer requires an alias field be passed through in the request.
1718

1819
### Added
1920
* Server listing view now displays the total used disk space for each server.

app/Http/Requests/Api/Application/Allocations/StoreAllocationRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function validated()
4040
return [
4141
'allocation_ip' => $data['ip'],
4242
'allocation_ports' => $data['ports'],
43-
'allocation_alias' => $data['alias'],
43+
'allocation_alias' => $data['alias'] ?? null,
4444
];
4545
}
4646
}

0 commit comments

Comments
 (0)