feat: add UserId filter to ProjectBoardListQuery for enhanced task assignment tracking

This commit is contained in:
2026-01-08 14:16:08 +03:30
parent 38027352d6
commit 7cb39b1b92
2 changed files with 6 additions and 0 deletions

View File

@@ -6,5 +6,6 @@ namespace GozareshgirProgramManager.Application.Modules.Projects.Queries.Project
public record ProjectBoardListQuery: IBaseQuery<List<ProjectBoardListResponse>>
{
public long? UserId { get; set; }
public TaskSectionStatus? Status { get; set; }
}

View File

@@ -40,6 +40,11 @@ public class ProjectBoardListQueryHandler : IBaseQueryHandler<ProjectBoardListQu
{
queryable = queryable.Where(x => x.Status == request.Status);
}
if (request.UserId is > 0)
{
queryable = queryable.Where(x => x.CurrentAssignedUserId == request.UserId);
}
var data = await queryable.ToListAsync(cancellationToken);