From 6a4b5e04e28ca91b454e8302018d49a3d24fbe10 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 25 Feb 2018 14:43:40 -0600 Subject: [PATCH] Fix broken external_id handling when creating servers --- CHANGELOG.md | 4 ++++ .../Requests/Api/Application/Servers/StoreServerRequest.php | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 104256f65..ece19fa7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa This project follows [Semantic Versioning](http://semver.org) guidelines. +## v0.7.3 (Derelict Dermodactylus) +### Fixed +* Fixes server creation API endpoint not passing the provided `external_id` to the creation service. + ## v0.7.2 (Derelict Dermodactylus) ### Fixed * Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint. diff --git a/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php b/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php index 997c2e396..6d0d2ecf3 100644 --- a/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php +++ b/app/Http/Requests/Api/Application/Servers/StoreServerRequest.php @@ -76,6 +76,7 @@ class StoreServerRequest extends ApplicationApiRequest $data = parent::validated(); return [ + 'external_id' => array_get($data, 'external_id'), 'name' => array_get($data, 'name'), 'description' => array_get($data, 'description'), 'owner_id' => array_get($data, 'user'),