Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drewda committed Feb 18, 2022
1 parent 025dccf commit 353ce3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/operator_in_feed_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def operator_url
if object.operator.try(:persisted?)
api_v1_operator_url(object.operator.onestop_id)
elsif object.try(:resolved_onestop_id).present?
"https://transit.land/api/v2/rest/operators/#{resolved_onestop_id}"
"https://transit.land/api/v2/rest/operators/#{object.try(:resolved_onestop_id)}"
end
end

Expand Down

0 comments on commit 353ce3c

Please sign in to comment.