spaceship/lib/spaceship/connect_api/models/user.rb in fastlane-2.205.2 vs spaceship/lib/spaceship/connect_api/models/user.rb in fastlane-2.206.0
- old
+ new
@@ -55,9 +55,14 @@
def self.find(client: nil, email: nil, includes: ESSENTIAL_INCLUDES)
client ||= Spaceship::ConnectAPI
return all(client: client, filter: { email: email }, includes: includes)
end
+ def delete!(client: nil)
+ client ||= Spaceship::ConnectAPI
+ client.delete_user(user_id: id)
+ end
+
def get_visible_apps(client: nil, limit: nil)
client ||= Spaceship::ConnectAPI
resp = client.get_user_visible_apps(user_id: id, limit: limit)
return resp.to_models
end