spaceship/lib/spaceship/connect_api/models/user.rb in fastlane-2.150.0.rc4 vs spaceship/lib/spaceship/connect_api/models/user.rb in fastlane-2.150.0.rc5
- old
+ new
@@ -37,10 +37,11 @@
#
# API
#
def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
- return Spaceship::ConnectAPI.get_users(filter: filter, includes: includes)
+ resps = Spaceship::ConnectAPI.get_users(filter: filter, includes: includes).all_pages
+ return resps.flat_map(&:to_models)
end
def self.find(email: nil, includes: nil)
return all(filter: { email: email }, includes: includes)
end