From a1b72d62cb038ef227d900fbbb96a90115286746 Mon Sep 17 00:00:00 2001 From: hemant10yadav Date: Tue, 26 Nov 2024 13:14:34 +0530 Subject: [PATCH] fixed opp_id issue --- commcare_connect/opportunity/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commcare_connect/opportunity/views.py b/commcare_connect/opportunity/views.py index dc1f18bd..9c4f0f26 100644 --- a/commcare_connect/opportunity/views.py +++ b/commcare_connect/opportunity/views.py @@ -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.")