Skip to content

Commit

Permalink
Merge instead of replace schedule when matching trips
Browse files Browse the repository at this point in the history
  • Loading branch information
blahblahblah- committed Jun 30, 2024
1 parent 3985e89 commit 55b3fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/feed_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def attach_previous_trip_update(feed_id, trip)
end

trip.is_assigned = trip.is_assigned || previous_update.is_assigned
trip.schedule = previous_update.schedule if previous_update
trip.schedule = trip.schedule.merge(previous_update.schedule) if previous_update
trip.past_stops = previous_update.past_stops if previous_update&.past_stops
end
end
Expand Down

0 comments on commit 55b3fb8

Please sign in to comment.