Fix PirepComment response; 201 to 200 (#654)

This commit is contained in:
Nabeel S
2020-04-01 01:05:09 -04:00
committed by GitHub
parent e8037c7d69
commit 261984ee90
6 changed files with 44 additions and 15 deletions

View File

@@ -56,7 +56,16 @@ class AcarsRepository extends Repository
*/
public function getPositions($live_time = 0)
{
$q = Pirep::with(['aircraft', 'airline', 'arr_airport', 'dpt_airport', 'position', 'user'])
$with = [
'aircraft',
'airline',
'arr_airport',
'dpt_airport',
'position',
'user',
];
$q = Pirep::with($with)
->where(['state' => PirepState::IN_PROGRESS]);
if ($live_time !== null && $live_time > 0) {