Data cleanup; set flight ident in response

This commit is contained in:
Nabeel Shahzad
2018-05-13 16:59:35 -05:00
parent 63897a5666
commit c8a9ebd26d
4 changed files with 13 additions and 5 deletions

View File

@@ -25,6 +25,8 @@ class Flight extends Resource
{
$flight = parent::toArray($request);
$flight['ident'] = $this->ident;
// Return multiple measures so the client can pick what they want
if ($this->distance instanceof Distance) {
$flight['distance'] = $this->distance->units;