Skip to content

Commit

Permalink
return full beneficiary info
Browse files Browse the repository at this point in the history
  • Loading branch information
tongo-angelov committed Sep 19, 2023
1 parent 8fc54d1 commit 27c12e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/api/src/person/person.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,16 @@ export class PersonService {
include: {
organizer: { select: { id: true, _count: { select: { campaigns: true } } } },
coordinators: { select: { id: true, _count: { select: { campaigns: true } } } },
beneficiaries: { select: { id: true, _count: { select: { campaigns: true } } } },
beneficiaries: {
select: {
id: true,
countryCode: true,
cityId: true,
description: true,
organizerRelation: true,
_count: { select: { campaigns: true } },
},
},
},
})
}
Expand Down

0 comments on commit 27c12e5

Please sign in to comment.