Skip to content

Commit

Permalink
fix: don't clear stop ID when adding multiple stops (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemald authored Nov 19, 2024
1 parent 286e4e5 commit 85ece0c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/arrow/shuttles/route_stop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ defmodule Arrow.Shuttles.RouteStop do

change =
route_stop
|> cast(attrs, [:direction_id, :stop_id, :gtfs_stop_id, :stop_sequence, :time_to_next_stop])
|> cast(attrs, [
:direction_id,
:stop_id,
:gtfs_stop_id,
:stop_sequence,
:time_to_next_stop,
:display_stop_id
])
|> change(stop_id: stop_id)
|> change(gtfs_stop_id: gtfs_stop_id)
|> validate_required([:direction_id, :stop_sequence])
Expand Down

0 comments on commit 85ece0c

Please sign in to comment.