|
@@ -53,8 +53,8 @@ |
|
|
block discarded – undo |
|
53
|
53
|
|
|
54
|
54
|
// location |
|
55
|
55
|
$locationId = $attributes['relationships']['location']['data']['id']; |
|
56
|
|
- $location = array_reduce($included, function ($data, $includedData) use ($locationId) { |
|
57
|
|
- if($locationId === $includedData['id']) { |
|
|
56
|
+ $location = array_reduce($included, function($data, $includedData) use ($locationId) { |
|
|
57
|
+ if ($locationId === $includedData['id']) { |
|
58
|
58
|
return LocationsRetrieveResponse::from($includedData); |
|
59
|
59
|
} |
|
60
|
60
|
return $data; |
Please login to merge, or discard this patch.