Skip to content

Commit 22a40ce

Browse files
committed
fix cache bug and typo
1 parent f650210 commit 22a40ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var (
2020
EnterprisesField = field.StringSliceField(
2121
"enterprises",
2222
field.WithDisplayName("Enterprises"),
23-
field.WithDescription("Sync enterprise roles, must be an edmin of the enterprise."),
23+
field.WithDescription("Sync enterprise roles, must be an admin of the enterprise."),
2424
)
2525
instanceUrlField = field.StringField(
2626
"instance-url",

pkg/connector/enterprise_role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (o *enterpriseRoleResourceType) ResourceType(_ context.Context) *v2.Resourc
3232
func (o *enterpriseRoleResourceType) cacheRole(roleId string, userLogin string) {
3333
o.mu.Lock()
3434
defer o.mu.Unlock()
35-
if _, exists := o.roleUsersCache[userLogin]; !exists {
35+
if _, exists := o.roleUsersCache[roleId]; !exists {
3636
o.roleUsersCache[roleId] = []string{}
3737
}
3838

0 commit comments

Comments
 (0)