Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/entitlements/backend/github_team/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class TeamNotFound < RuntimeError; end
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
super
Entitlements.cache[:github_team_members] ||= {}
Entitlements.cache[:github_team_members][org] ||= {}
@team_cache = Entitlements.cache[:github_team_members][org]
Entitlements.cache[:github_team_members][addr] ||= {}
Entitlements.cache[:github_team_members][addr][org] ||= {}
@team_cache = Entitlements.cache[:github_team_members][addr][org]
Comment thread
chrisgavin marked this conversation as resolved.
Outdated
end

# Read a single team identified by its slug and return a team object.
Expand Down