diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-03 09:49:12 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-03 09:49:12 -0600 |
| commit | 26de2c48a77d295b9529a9a5774663a6056b5b5b (patch) | |
| tree | 2a7897baf454909e3d49c689c4a71d4fc4e15b2a | |
| parent | b76b9ca7160a04101bb488122d822299959f9096 (diff) | |
| download | slskd-26de2c48a77d295b9529a9a5774663a6056b5b5b.tar.gz | |
use group constant from Application
| -rw-r--r-- | src/slskd/Users/UserService.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index 5a6170fc..b6ae4e30 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -35,7 +35,6 @@ namespace slskd.Users public class UserService : IUserService { private const int CacheTTLSeconds = 300; - private static readonly string DefaultGroup = "default"; /// <summary> /// Initializes a new instance of the <see cref="UserService"/> class. @@ -43,7 +42,6 @@ namespace slskd.Users /// <param name="soulseekClient"></param> /// <param name="contextFactory">The database context to use.</param> /// <param name="optionsMonitor"></param> - /// <param name="log">The logger.</param> public UserService( ISoulseekClient soulseekClient, IDbContextFactory<UserDbContext> contextFactory, @@ -86,7 +84,7 @@ namespace slskd.Users public string GetGroup(string username) { - return Map.GetValueOrDefault(username, DefaultGroup); + return Map.GetValueOrDefault(username, Application.DefaultGroup); } /// <summary> |
