lib/dynamodb_manager.rb in dynamodb_geo-0.1.1 vs lib/dynamodb_manager.rb in dynamodb_geo-0.1.2

- old
+ new

@@ -67,10 +67,10 @@ neighbours.unshift(hash) neighbours.each do |neighbour| resp = query(neighbour) resp.items.each do |item| - all_stores << Store.new(item['geoJson'], item['geohash']) + all_stores << Store.new(item['geoJson']) end break if all_stores.length >= max_item_return end # We got all the stores in the biggest possible area, we increase the hash by one and search around now