Make sure user and acars data is sent from API

This commit is contained in:
Nabeel Shahzad
2020-03-29 13:33:14 -04:00
parent 82b873c071
commit e9b30fbe30
8 changed files with 46 additions and 24 deletions

View File

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