Skip to content

Commit

Permalink
workaround for fastlane#21125 - check app_prices
Browse files Browse the repository at this point in the history
  • Loading branch information
zachawilson committed Jul 12, 2023
1 parent 0ede7e7 commit ed34b7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deliver/lib/deliver/upload_price_tier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def upload(options)
# Need to get prices from the app's relationships
# Prices from app's relationship doess not have price tier so need to fetch app price with price tier relationship
app_prices = app.prices
if app_prices.nil?
UI.message("App has no prices yet... No changes required.")
return
end
if app_prices.first
app_price = Spaceship::ConnectAPI.get_app_price(app_price_id: app_prices.first.id, includes: "priceTier").first
old_price = app_price.price_tier.id
Expand Down

0 comments on commit ed34b7a

Please sign in to comment.