Skip to content

Commit

Permalink
fix: wrong name in email
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal61 committed Sep 4, 2023
1 parent db4155e commit c03bbec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/participation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,11 @@ export const participateInEvent = async (req: ApiRequest, res: ApiResponse) => {
const foundTeamLeader = await User.findById(
foundTeam.createdBy.toString()
);
const foundUser = await User.findById(req.user?.id);
await sendRequestedInTeam(
foundTeamLeader.email,
foundEvent.name,
foundTeamLeader.name,
foundUser.name,
foundTeam.name
);
await newParticipant.populate({
Expand Down

0 comments on commit c03bbec

Please sign in to comment.