diff --git a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs index 9a248e0..c9ade74 100644 --- a/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs +++ b/src/ReC.Application/RecActions/Queries/ReadRecActionQuery.cs @@ -38,9 +38,9 @@ public class ReadRecActionQueryHandler(IRepository repo, IMapper if (request.Invoked is bool invoked) query = invoked ? query.Where(act => act.Root!.OutRes != null) : query.Where(act => act.Root!.OutRes == null); - var actions = await query.ToListAsync(cancel); + var actions = await query.Include(act => act.EndpointAuth).ToListAsync(cancel); - if(actions.Count == 0) + if (actions.Count == 0) throw new NotFoundException($"No actions found for the profile {request.ProfileId}."); return mapper.Map>(actions);