Skip to content

fix: usage of outdated invite object resulted in PI not being able receive notification on invite accept - #1245

Merged
yoganandaness merged 2 commits into
developfrom
fix/invite-accepted-email
Nov 4, 2025
Merged

fix: usage of outdated invite object resulted in PI not being able receive notification on invite accept#1245
yoganandaness merged 2 commits into
developfrom
fix/invite-accepted-email

Conversation

@yoganandaness

Copy link
Copy Markdown
Contributor

Description

When a co-proposer invite has been accepted, an event is triggered that sends out email notification to the Principal Investigator. Since, the outdated invite is being used by the event, that does not contain the claimedByUserId, the event fails with the error "No claimer found when trying to send invite accepted email". To fix this, update the invite first with the claimedByUserId and pass it to the event.

Motivation and Context

Fix Invite Accepted Notification to PI

How Has This Been Tested

Manually and attached tests.

Fixes

Invite accept Email notification to PI

Changes

Ensuring that the updated invite object is being used rather than the outdated one

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@yoganandaness
yoganandaness requested a review from a team as a code owner October 31, 2025 12:44
@yoganandaness
yoganandaness requested review from janosbabik and mutambaraf and removed request for a team October 31, 2025 12:44
@yoganandaness
yoganandaness enabled auto-merge (squash) October 31, 2025 13:15
@yoganandaness
yoganandaness merged commit 1d530a3 into develop Nov 4, 2025
22 checks passed
@yoganandaness
yoganandaness deleted the fix/invite-accepted-email branch November 4, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants