From 9fc81e70eea1be285618e8789eb004aee09b2aa0 Mon Sep 17 00:00:00 2001 From: lucabruno91 Date: Mon, 18 Mar 2024 11:54:41 +0100 Subject: [PATCH] fix GetStatisctics part 2 --- src/Ermes.Application/Ermes/Dashboard/DashboardAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ermes.Application/Ermes/Dashboard/DashboardAppService.cs b/src/Ermes.Application/Ermes/Dashboard/DashboardAppService.cs index 30b7db8..af2575a 100644 --- a/src/Ermes.Application/Ermes/Dashboard/DashboardAppService.cs +++ b/src/Ermes.Application/Ermes/Dashboard/DashboardAppService.cs @@ -147,7 +147,7 @@ public virtual async Task GetStatistics(GetStatisticsInput if (_session.LoggedUserPerson.OrganizationId.HasValue) queryMapRequests = queryMapRequests.DataOwnership(new List() { _session.LoggedUserPerson.OrganizationId.Value }); } - queryMapRequests = queryMapRequests.Where(x => x.Status != MapRequestStatusType.Canceled); + queryMapRequests = queryMapRequests.Where(x => x.StatusString != MapRequestStatusType.Canceled.ToString()); ////////////////////// //Alerts///////////