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

fix old bug of auto unflag not working

fix wrong thresholds on recoil
This commit is contained in:
RaidMax
2019-06-24 18:32:14 -05:00
parent cfca00d6c8
commit 72c8a108c5
3 changed files with 7 additions and 7 deletions

View File

@ -172,14 +172,14 @@ namespace SharedLibraryCore.Services
{
var now = DateTime.UtcNow;
Expression<Func<EFPenalty, bool>> filter = (p) => new EFPenalty.PenaltyType[]
Expression<Func<EFPenalty, bool>> filter = (p) => (new EFPenalty.PenaltyType[]
{
EFPenalty.PenaltyType.TempBan,
EFPenalty.PenaltyType.Ban,
EFPenalty.PenaltyType.Flag
EFPenalty.PenaltyType.Ban
}.Contains(p.Type) &&
p.Active &&
(p.Expires == null || p.Expires > now);
(p.Expires == null || p.Expires > now)) ||
(p.Type ==EFPenalty.PenaltyType.Flag && p.Active);
using (var context = new DatabaseContext(true))
{