1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

include some of the changes meant for previous build

This commit is contained in:
RaidMax
2020-04-22 20:51:04 -05:00
parent 0e6a7f89b2
commit b7f1697c79
3 changed files with 17 additions and 12 deletions

View File

@ -373,8 +373,6 @@ namespace SharedLibraryCore.Services
private static readonly Func<DatabaseContext, long, Task<EFClient>> _getUniqueQuery =
EF.CompileAsyncQuery((DatabaseContext context, long networkId) =>
context.Clients
.Include(c => c.CurrentAlias)
.Include(c => c.AliasLink)
.Select(_client => new EFClient()
{
ClientId = _client.ClientId,
@ -385,7 +383,8 @@ namespace SharedLibraryCore.Services
LastConnection = _client.LastConnection,
Masked = _client.Masked,
NetworkId = _client.NetworkId,
TotalConnectionTime = _client.TotalConnectionTime
TotalConnectionTime = _client.TotalConnectionTime,
AliasLink = _client.AliasLink
})
.FirstOrDefault(c => c.NetworkId == networkId)
);