From 76c81293777aecce8d9ca18fe7d648010fb2b321 Mon Sep 17 00:00:00 2001 From: Alexander Petkov Date: Fri, 20 Oct 2023 15:55:19 +0300 Subject: [PATCH] src/donations: Include companyName in listPublic endpoint --- apps/api/src/donations/donations.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/src/donations/donations.service.ts b/apps/api/src/donations/donations.service.ts index af876b9b3..24e0df249 100644 --- a/apps/api/src/donations/donations.service.ts +++ b/apps/api/src/donations/donations.service.ts @@ -304,7 +304,9 @@ export class DonationsService { amount: true, chargedAmount: true, currency: true, - person: { select: { firstName: true, lastName: true } }, + person: { + select: { firstName: true, lastName: true, company: { select: { companyName: true } } }, + }, }, skip: pageIndex && pageSize ? pageIndex * pageSize : undefined, take: pageSize ? pageSize : undefined,