dev: fix current site domain registration

This commit is contained in:
pablohashescobar 2023-11-15 18:18:00 +05:30
parent 2aee627616
commit 9789757d2d
2 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ class ProjectInvitationsViewset(BaseViewSet):
project_invitations = ProjectMemberInvite.objects.bulk_create( project_invitations = ProjectMemberInvite.objects.bulk_create(
project_invitations, batch_size=10, ignore_conflicts=True project_invitations, batch_size=10, ignore_conflicts=True
) )
current_site = f"{request.scheme}://{request.get_host()}", current_site = request.META.get('HTTP_ORIGIN')
# Send invitations # Send invitations
for invitation in project_invitations: for invitation in project_invitations:

View File

@ -319,7 +319,7 @@ class WorkspaceInvitationsViewset(BaseViewSet):
workspace_invitations, batch_size=10, ignore_conflicts=True workspace_invitations, batch_size=10, ignore_conflicts=True
) )
current_site = f"{request.scheme}://{request.get_host()}", current_site = request.META.get('HTTP_ORIGIN')
# Send invitations # Send invitations
for invitation in workspace_invitations: for invitation in workspace_invitations: