BUGFIX-ek

This commit is contained in:
2025-03-31 22:13:17 +02:00
parent 61dd5bc9a1
commit 5207f32712
7 changed files with 38 additions and 20 deletions
+6 -1
View File
@@ -5,6 +5,7 @@ using Serilog;
using System.Collections.Generic;
using WorkFlowCheck.BL.Services.Interfaces;
using WorkFlowCheck.Common.DTO;
using WorkFlowCheck.Common.Enums;
using WorkFlowCheck.DL;
using WorkFlowCheck.DL.Entities;
@@ -322,7 +323,11 @@ namespace WorkFlowCheck.BL.Services
try
{
var res = await _dbContext.CheckListHeaders
.Where(w => w.IsEditable && w.UserId == userId && w.IsDeleted != true)
.Where(w => w.IsEditable &&
w.UserId == userId &&
w.IsDeleted != true &&
(w.CheckStatus == CheckStatus.InProgress ||
w.CheckStatus == CheckStatus.Open))
.Include(i => i.CheckListRows)
//.ThenInclude(i => i.CheckListTemplateRow)
.AsNoTracking()