Chore: Use cache for all signed in user lookups (#88133)
* GetSignedInUser unexported (renamed to getSignedInUser) * GetSignedInUserWithCacheCtx renamed to GetSignedInUser * added a check for a nil cacheservice (as defensive programming / test convenience)
This commit is contained in:
@@ -120,7 +120,7 @@ func (s *UserSync) FetchSyncedUserHook(ctx context.Context, identity *authn.Iden
|
||||
return nil
|
||||
}
|
||||
|
||||
usr, err := s.userService.GetSignedInUserWithCacheCtx(ctx, &user.GetSignedInUserQuery{
|
||||
usr, err := s.userService.GetSignedInUser(ctx, &user.GetSignedInUserQuery{
|
||||
UserID: userID,
|
||||
OrgID: r.OrgID,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user