Skip to content

Commit

Permalink
src/donations: Include companyName in listPublic endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Oct 20, 2023
1 parent b187047 commit 76c8129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 76c8129

Please sign in to comment.