From be7ac542939c5a8f936cde32a4466fca7edabb84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fagundes?= Date: Thu, 6 Jun 2024 10:32:32 -0300 Subject: [PATCH] feat: added more fields to donation order response to use in print response --- src/donation-order/donation-order.service.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/donation-order/donation-order.service.ts b/src/donation-order/donation-order.service.ts index cc7fb2f..73f93a4 100644 --- a/src/donation-order/donation-order.service.ts +++ b/src/donation-order/donation-order.service.ts @@ -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: {