Skip to content

Commit

Permalink
Rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky committed Jul 18, 2019
1 parent 540b561 commit 84e61ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/site/lib/site_web/controllers/schedule/schedule_api.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
defmodule SiteWeb.ScheduleController.ScheduleApi do
use SiteWeb, :controller

def show(conn, %{"id" => id, "date" => date, "direction_id" => direction_id}) do
def show(conn, %{"id" => route_id, "date" => date, "direction_id" => direction_id}) do
{:ok, date} = Date.from_iso8601(date)
schedule_data = get_schedules(id, date, direction_id)
schedule_data = get_schedules(route_id, date, direction_id)

json(conn, schedule_data)
end
Expand Down

0 comments on commit 84e61ea

Please sign in to comment.