Add 'phase' as response output, deprecate "status"

This commit is contained in:
Nabeel Shahzad
2021-02-04 14:54:16 -05:00
parent 6b3207377a
commit bf77f7dd96
2 changed files with 3 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ class Pirep extends Resource
{
$res = parent::toArray($request);
$res['ident'] = $this->ident;
$res['phase'] = $this->status;
$res['status_text'] = PirepStatus::label($this->status);
// Set these to the response units