Skip to content

Commit

Permalink
Fix no data case
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Dec 19, 2024
1 parent 889534c commit 3e337dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ class App < Hanami::API

[
200,
{ 'Content-Type' => 'application/geo+json' },
{
'Content-Type' => 'application/geo+json',
'Access-Control-Allow-Origin' => '*',
},
body
]
end
Expand Down
2 changes: 1 addition & 1 deletion overpass/overpass_logical_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def self.fetch_osm_at_data(bbox, date_start, date_end)
h = Hash.from_xml(response.body)
old = []
new = []
h['osm']['action'].collect{ |action|
h.dig('osm', 'action')&.collect{ |action|
case action['type']
when 'delete'
old << action['old']
Expand Down

0 comments on commit 3e337dc

Please sign in to comment.