Skip to content

Commit 4ff31dc

Browse files
return full beneficiary info (#552)
1 parent f307b74 commit 4ff31dc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/api/src/person/person.service.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,16 @@ export class PersonService {
9696
include: {
9797
organizer: { select: { id: true, _count: { select: { campaigns: true } } } },
9898
coordinators: { select: { id: true, _count: { select: { campaigns: true } } } },
99-
beneficiaries: { select: { id: true, _count: { select: { campaigns: true } } } },
99+
beneficiaries: {
100+
select: {
101+
id: true,
102+
countryCode: true,
103+
cityId: true,
104+
description: true,
105+
organizerRelation: true,
106+
_count: { select: { campaigns: true } },
107+
},
108+
},
100109
},
101110
})
102111
}

0 commit comments

Comments
 (0)