diff --git a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs index 2b3202d..07374de 100644 --- a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs +++ b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs @@ -26,7 +26,7 @@ public class ReadRecActionQueryHandler(IRepository repo, IMapper { public async Task> Handle(ReadRecActionQuery request, CancellationToken cancel) { - var actions = await repo.Where(x => x.ProfileId == request.ProfileId).ToListAsync(cancel); + var actions = await repo.Where(act => act.ProfileId == request.ProfileId).Where(act => act.RootAction!.OutRes != null).ToListAsync(cancel); if(actions.Count == 0) throw new NotFoundException($"No actions found for the profile {request.ProfileId}.");