Skip to content

Commit

Permalink
feat: member and team contribution on IRL events
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuva-rajendran committed Dec 12, 2024
1 parent 294d3c4 commit d30c4a3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/web-api/src/members/members.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,23 @@ export class MembersService {
},
},
},
eventGuests: {
select: {
uid: true,
isHost: true,
isSpeaker: true,
event: {
select: {
uid: true,
name: true,
type: true,
slugURL: true,
startDate: true,
endDate: true,
}
},
},
},
},
});
} catch (error) {
Expand Down
18 changes: 18 additions & 0 deletions apps/web-api/src/teams/teams.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,24 @@ export class TeamsService {
focusArea: { select: { uid: true, title: true } },
},
},
eventGuests: {
where: {
isHost: true,
},
distinct: ['eventUid'],
select: {
event: {
select: {
uid: true,
name: true,
type: true,
slugURL: true,
startDate: true,
endDate: true,
}
},
},
},
},
});
team.teamFocusAreas = this.removeDuplicateFocusAreas(team.teamFocusAreas);
Expand Down

0 comments on commit d30c4a3

Please sign in to comment.