mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 21:51:29 +00:00
Fix StatisticsHelper concurrent exception
This commit is contained in:
parent
cf5369d372
commit
eb7cda8997
9 changed files with 65 additions and 44 deletions
|
@ -21,15 +21,15 @@ public class ModPanelPage : BaseLayout
|
|||
|
||||
this.Statistics.Add(new AdminPanelStatistic(
|
||||
statisticNamePlural: "Reports",
|
||||
count: await StatisticsHelper.ReportCount(),
|
||||
count: await StatisticsHelper.ReportCount(this.Database),
|
||||
viewAllEndpoint: "/moderation/reports/0")
|
||||
);
|
||||
|
||||
this.Statistics.Add(new AdminPanelStatistic(
|
||||
statisticNamePlural: "Cases",
|
||||
count: await StatisticsHelper.DismissedCaseCount(),
|
||||
count: await StatisticsHelper.DismissedCaseCount(this.Database),
|
||||
viewAllEndpoint: "/moderation/cases/0",
|
||||
secondStatistic: await StatisticsHelper.CaseCount())
|
||||
secondStatistic: await StatisticsHelper.CaseCount(this.Database))
|
||||
);
|
||||
|
||||
return this.Page();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue