From e3a1df4ae68c8b0292eb6f08e7e1da106d58c30d Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 14 Feb 2024 23:26:06 -0300 Subject: [PATCH] fix: pedido repository --- OpenAdm.Infra/Repositories/PedidoRepository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenAdm.Infra/Repositories/PedidoRepository.cs b/OpenAdm.Infra/Repositories/PedidoRepository.cs index 3f6a647..8e06ac5 100644 --- a/OpenAdm.Infra/Repositories/PedidoRepository.cs +++ b/OpenAdm.Infra/Repositories/PedidoRepository.cs @@ -37,6 +37,8 @@ public async Task> GetPaginacaoPedidoAsync(PaginacaoP return await _parceiroContext .Pedidos .AsNoTracking() + .Include(x => x.Usuario) + .Include(x => x.ItensPedido) .FirstOrDefaultAsync(x => x.Id == id); } }