1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

fix issue with alert manager concurrency

This commit is contained in:
RaidMax 2023-05-14 21:44:28 -05:00
parent 2af03d10d0
commit 4002745ad7
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class AlertManager : IAlertManager
alerts = alerts.Concat(_states[client.ClientId].AsReadOnly());
}
return alerts.OrderByDescending(alert => alert.OccuredAt);
return alerts.OrderByDescending(alert => alert.OccuredAt).ToList();
}
finally
{

View File

@ -178,7 +178,7 @@ namespace SharedLibraryCore
ViewBag.ReportCount = Manager.GetServers().Sum(server =>
server.Reports.Count(report => DateTime.UtcNow - report.ReportedOn <= TimeSpan.FromHours(24)));
ViewBag.PermissionsSet = PermissionsSet;
ViewBag.Alerts = AlertManager.RetrieveAlerts(Client).ToList();
ViewBag.Alerts = AlertManager.RetrieveAlerts(Client);
base.OnActionExecuting(context);
}