Skip to content

Commit

Permalink
Make the partner request more usable in dev/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmarcia committed Dec 17, 2018
1 parent e59c055 commit 8d7b53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/diaper_bank_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.post(partner_id)
end

def self.get_available_items(diaper_bank_id)
return unless Rails.env.production?
return POSSIBLE_ITEMS.keys unless Rails.env.production?

uri = URI(ENV["DIAPERBANK_PARTNER_REQUEST_URL"] + "/#{diaper_bank_id}")
req = Net::HTTP::Get.new(uri)
Expand Down

0 comments on commit 8d7b53b

Please sign in to comment.