Skip to content

Commit

Permalink
Merge pull request #115 from vatsimnetwork/development
Browse files Browse the repository at this point in the history
  • Loading branch information
williammck authored Oct 27, 2023
2 parents 2422447 + 4801c64 commit fc9c50b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Api/PluginDataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function allRclMessages(Request $request)
return Cache::remember(
'rcl-messages:'.($track->id ?? 'all'),
60,
fn () => RclMessage::with('clxMessages')
fn () => RclMessage::with(['clxMessages', 'track'])
->when($track, fn (Builder $q) => $q->whereBelongsTo($track))
->get()
->map(self::serializeRclMessage(...))
Expand All @@ -51,7 +51,7 @@ public function allClxMessages(Request $request)
return Cache::remember(
'clx-messages:'.($track->id ?? 'all'),
60,
fn () => ClxMessage::with('rclMessage')
fn () => ClxMessage::with(['rclMessage', 'track'])
->when($track, fn (Builder $q) => $q->whereBelongsTo($track))
->get()
->map(self::serializeClxMessage(...))
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Livewire/Controllers/PgClxMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function datasource(): ?Collection
$query->where('is_concorde', true);
}
})
->with('rclMessage')
->with(['rclMessage', 'track'])
->orderByDesc('created_at')
->get();

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Livewire/Controllers/PgPendingRclMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function datasource(): ?Collection
} elseif ($track == 'CONC') {
$query->where('is_concorde', true);
}
})->get();
})->with('track')->get();
foreach ($trackMsgs as $msg) {
$pendingRclMsgs->add($msg);
}
Expand Down

0 comments on commit fc9c50b

Please sign in to comment.