1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 08:38:19 -05:00

Added unban "penalty"

permbans ->MaxValue for consistency
Existing alias needs to be FirstOrDefault
This commit is contained in:
RaidMax
2018-02-17 00:13:38 -06:00
parent 0752013fdf
commit 224ba2b334
8 changed files with 43 additions and 11 deletions

View File

@ -27,7 +27,7 @@ namespace SharedLibrary.Services
.ToListAsync();
// see if they have a matching IP + Name but new NetworkId
var existingAlias = aliases.SingleOrDefault(a => a.Name == entity.Name);
var existingAlias = aliases.FirstOrDefault(a => a.Name == entity.Name);
// if existing alias matches link them
EFAliasLink aliasLink = existingAlias?.Link;
// if no exact matches find the first IP that matches