fix issue with log reader

fix issue with searching names on webfront that could be parsed to hex
This commit is contained in:
RaidMax
2019-08-01 19:42:44 -05:00
parent 034d887abd
commit 1c66ac9117
4 changed files with 10 additions and 13 deletions

View File

@ -489,15 +489,8 @@ namespace SharedLibraryCore.Services
var iqClients = context.Clients
.Where(_client => _client.Active);
if (networkId.HasValue)
{
iqClients = iqClients.Where(_client => networkId.Value == _client.NetworkId);
}
else
{
iqClients = iqClients.Where(_client => linkIds.Contains(_client.AliasLinkId));
}
iqClients = iqClients.Where(_client => networkId == _client.NetworkId || linkIds.Contains(_client.AliasLinkId));
// we want to project our results
var iqClientProjection = iqClients.OrderByDescending(_client => _client.LastConnection)