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:
@ -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
|
||||
|
Reference in New Issue
Block a user