Skip to content

Commit

Permalink
getUserDonationById: Include companyName inside the query
Browse files Browse the repository at this point in the history
Needed in order to show the corporation's name inside the certificate
  • Loading branch information
sashko9807 committed Nov 2, 2023
1 parent 87df4e2 commit aea9be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,12 @@ export class DonationsService {
id: true,
firstName: true,
lastName: true,
company: { select: { companyName: true } },
},
},
affiliate: {
select: { company: { select: { companyName: true } } },
},
targetVault: {
select: {
id: true,
Expand Down

0 comments on commit aea9be9

Please sign in to comment.