spaceship/lib/spaceship/connect_api/models/territory.rb in fastlane_hotfix-2.165.1 vs spaceship/lib/spaceship/connect_api/models/territory.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -16,11 +16,12 @@ # # API # - def self.all(filter: {}, includes: nil, limit: 180, sort: nil) - resps = Spaceship::ConnectAPI.get_territories(filter: {}, includes: nil, limit: nil, sort: nil).all_pages + def self.all(client: nil, filter: {}, includes: nil, limit: 180, sort: nil) + client ||= Spaceship::ConnectAPI + resps = client.get_territories(filter: {}, includes: nil, limit: nil, sort: nil).all_pages return resps.flat_map(&:to_models) end end end end