Skip to content

Commit 58cc6d6

Browse files
committed
Only looking at completed cases.
1 parent e51d9ac commit 58cc6d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eFormAPI/eFormAPI.Web/Services/CasesService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ public async Task<OperationDataResult<LatestCaseActivity>> GetLatestActivity()
376376
{
377377
var latestActivity = await sdkDbContext.Cases
378378
.Where(x => x.WorkflowState != Constants.WorkflowStates.Removed)
379+
.Where(x => x.Status == 100)
379380
.OrderByDescending(x => x.UpdatedAt)
380381
.Select(x => new { x.Id, x.UpdatedAt, x.CheckListId })
381382
.FirstOrDefaultAsync();

0 commit comments

Comments
 (0)