diff --git a/Manager.App/Services/System/ClientService.cs b/Manager.App/Services/System/ClientService.cs index 461632d..4b3525d 100644 --- a/Manager.App/Services/System/ClientService.cs +++ b/Manager.App/Services/System/ClientService.cs @@ -58,17 +58,17 @@ public class ClientService(IServiceScopeFactory scopeFactory, ILogger(comparedClients, accountsResult.Total); } - public async Task> LoadClientByIdAsync(string id, bool forceLoad = false, CancellationToken cancellationToken = default) + public async Task> LoadClientByIdAsync(string id, CancellationToken cancellationToken = default) { + if (_loadedClients.TryGetValue(id, out var client)) + { + return client; + } + if (_libraryService == null) { return ResultError.Fail("Library service is not initialized!."); } - - if (!forceLoad && _loadedClients.TryGetValue(id, out var client)) - { - return client; - } var clientResult = await _libraryService.GetChannelByIdAsync(id, cancellationToken); if (!clientResult.IsSuccess)