Skip to content

Commit

Permalink
Updated the vehicle marker channel to use new predictions repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 8, 2024
1 parent 29083ce commit f527f74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dotcom_web/channels/vehicle_map_marker_channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ defmodule DotcomWeb.VehicleMapMarkerChannel do
alias Leaflet.MapData.Marker
alias Vehicles.Vehicle

@predictions_repo Application.compile_env!(:dotcom, :repo_modules)[:predictions]

intercept(["reset", "add", "update", "remove"])

@impl Phoenix.Channel
Expand Down Expand Up @@ -46,7 +48,7 @@ defmodule DotcomWeb.VehicleMapMarkerChannel do
trip = Schedules.Repo.trip(vehicle.trip_id)

prediction =
Predictions.Repo.all(
@predictions_repo.all(
route: vehicle.route_id,
direction_id: vehicle.direction_id
)
Expand Down

0 comments on commit f527f74

Please sign in to comment.