Skip to content

Commit

Permalink
fixed opp_id issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant10yadav committed Nov 26, 2024
1 parent f72eddb commit a1b72d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_connect/opportunity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def resend_user_invite(request, org_slug, opp_id, pk):
update_user_and_send_invite(connect_user, opp_id=pk)
else:
user = User.objects.get(phone_number=user_invite.phone_number)
access, _ = OpportunityAccess.objects.get_or_create(user=user, opportunity_id=pk)
access, _ = OpportunityAccess.objects.get_or_create(user=user, opportunity_id=opp_id)
invite_user.delay(user.id, access.pk)

return HttpResponse("The invitation has been successfully resent to the user.")

0 comments on commit a1b72d6

Please sign in to comment.