Skip to content

Commit

Permalink
feat: added more fields to donation order (#190)
Browse files Browse the repository at this point in the history
Adicionado mais campos nas respostas de `DonationOrder` para poder
exibir nome e telefone da pessoa na impressão do comprovante de doação
  • Loading branch information
rhuam authored Jun 6, 2024
2 parents abd355f + be7ac54 commit 3bfb5af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/donation-order/donation-order.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ export class DonationOrderService {
private donationOrderVisibleFields: Prisma.DonationOrderSelect = {
id: true,
status: true,
userId: true,
user: {
select: {
id: true,
name: true,
lastName: true,
phone: true,
},
},
shelter: {
select: {
id: true,
name: true,
address: true,
},
},
donationOrderSupplies: {
Expand Down

0 comments on commit 3bfb5af

Please sign in to comment.