Skip to content

Commit

Permalink
fix: pedido repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunobento1990 committed Feb 15, 2024
1 parent e0c84a3 commit e3a1df4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenAdm.Infra/Repositories/PedidoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public async Task<PaginacaoViewModel<Pedido>> GetPaginacaoPedidoAsync(PaginacaoP
return await _parceiroContext
.Pedidos
.AsNoTracking()
.Include(x => x.Usuario)
.Include(x => x.ItensPedido)
.FirstOrDefaultAsync(x => x.Id == id);
}
}

0 comments on commit e3a1df4

Please sign in to comment.