diff --git a/agent/lib/github.rb b/agent/lib/github.rb index 74c41bf..58e52ea 100644 --- a/agent/lib/github.rb +++ b/agent/lib/github.rb @@ -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 }