Fix allocations requiring an alias when generated via API.

This commit is contained in:
Dane Everitt 2019-08-03 13:03:54 -07:00
parent 58796e7441
commit 2198269a65
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ value when showing an error state.
error encountered during creation or update.
* Two-factor tokens generated when a company name has a space in it will now properly be parsed on iOS authenticator devices.
* Fixed 500 error when trying to request subuser's from a server in the application API.
* Creating a node allocation via the API no longer requires an alias field be passed through in the request.
### Added
* Server listing view now displays the total used disk space for each server.

View File

@ -40,7 +40,7 @@ class StoreAllocationRequest extends ApplicationApiRequest
return [
'allocation_ip' => $data['ip'],
'allocation_ports' => $data['ports'],
'allocation_alias' => $data['alias'],
'allocation_alias' => $data['alias'] ?? null,
];
}
}