Skip to content

Commit

Permalink
Corrected for removal of intermediate User object
Browse files Browse the repository at this point in the history
  • Loading branch information
johntopleyons committed Apr 3, 2023
1 parent 8ef180e commit 54e2409
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions agent/lib/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ def all_members
next_page = members.data.enterprise.members.page_info.has_next_page

members.data.enterprise.members.nodes.each do |member|
next if member.user.nil?
next if member.nil?

user = User.new(member.user.login, member.user.name)
user.avatar_url = member.user.avatar_url
user.created_at = member.user.created_at
user.email = member.user.email
user.updated_at = member.user.updated_at
user = User.new(member.login, member.name)
user.avatar_url = member.avatar_url
user.created_at = member.created_at
user.email = member.email
user.updated_at = member.updated_at

organisations = []
member.user.organizations.nodes.each { |node| organisations << node.resource_path[1..].downcase }
Expand Down

0 comments on commit 54e2409

Please sign in to comment.