Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spaceship] update Spaceship::ConnectAPI::User model to include delete! method #20251

Merged
merged 2 commits into from
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions spaceship/lib/spaceship/connect_api/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def get_visible_apps(client: nil, limit: nil)
resp = client.get_user_visible_apps(user_id: id, limit: limit)
return resp.to_models
end

def delete!(client: nil)
lucgrabowski marked this conversation as resolved.
Show resolved Hide resolved
client ||= Spaceship::ConnectAPI
client.delete_user(user_id: id)
end
end
end
end