Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Oct 20, 2024
1 parent 3f995de commit 82df9a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ protected virtual IUserDefinition GetCachedById(string id)
() => LoadById(id));
}

protected virtual IUserDefinition GetCachedByUsername(string id)
protected virtual IUserDefinition GetCachedByUsername(string username)
{
return cache.GetLocalStoreOnly(GetUsernameCacheKey(id), GetCacheDuration(), GetCacheGroupKey(),
() => LoadByUsername(id));
return cache.GetLocalStoreOnly(GetUsernameCacheKey(username), GetCacheDuration(), GetCacheGroupKey(),
() => LoadByUsername(username));
}

protected virtual bool IsValidUserId(string userId) => !string.IsNullOrEmpty(userId);
Expand Down

0 comments on commit 82df9a1

Please sign in to comment.