fix cache issue

This commit is contained in:
Alex Bezdieniezhnykh
2025-04-16 01:49:34 +03:00
parent 461606ef08
commit 4fc1fb4d63
3 changed files with 11 additions and 21 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ public class User
public UserConfig? UserConfig { get; set; } = null!;
public static string GetCacheKey(string email) => $"{nameof(User)}.{email}";
public static string GetCacheKey(string email) =>
string.IsNullOrEmpty(email) ? "" : $"{nameof(User)}.{email}";
}
public class UserConfig