Skip to content

Commit

Permalink
Merge pull request #25 from Vidyaranya-Gavai-TTPL/updateInvitationFix
Browse files Browse the repository at this point in the history
Update Invitation API Issue Fix: v2
  • Loading branch information
gouravmore authored Feb 11, 2025
2 parents 43b8086 + 64868ee commit 7702c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/invitation/invitation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class InvitationService {
}

// If accepted, then map user as cohort admin
if (request.body.invitationStatus === "Accepted") {
if (updateInvitationDto.invitationStatus === "Accepted") {
// Get role for roleId
const role = await this.roleRepository.findOne({
where: { tenantId: invitation.tenantId, code: "cohort_admin" },
Expand Down

0 comments on commit 7702c2c

Please sign in to comment.