Skip to content

Commit 1fb63d3

Browse files
Use org_signature method to determine the cache path to use.
Co-authored-by: Jason Macgowan <[email protected]>
1 parent 52bbcbc commit 1fb63d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/entitlements/backend/github_team/service.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ class TeamNotFound < RuntimeError; end
3535
def initialize(addr: nil, org:, token:, ou:, ignore_not_found: false)
3636
super
3737
Entitlements.cache[:github_team_members] ||= {}
38-
Entitlements.cache[:github_team_members][addr] ||= {}
39-
Entitlements.cache[:github_team_members][addr][org] ||= {}
40-
@team_cache = Entitlements.cache[:github_team_members][addr][org]
38+
Entitlements.cache[:github_team_members][org_signature] ||= {}
39+
@team_cache = Entitlements.cache[:github_team_members][org_signature]
4140
end
4241

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

0 commit comments

Comments
 (0)