Make sure user and acars data is sent from API
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user