Skip to content

Commit

Permalink
adding more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Barbosa committed Jan 9, 2025
1 parent 24760b5 commit 24bc987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connect/api/v2/commerce/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CommerceProjectCheckExists(views.APIView):
def get(self, request):
data = request.data
project = Project.objects.filter(vtex_account=data.get("vtex_account"))

print(f"request data: {data}")
if project.count() > 0:
project = project.first()
else:
Expand All @@ -53,6 +53,7 @@ def get(self, request):
}, status=status.HTTP_200_OK)

organization = project.organization
print(f"project: {project.__dict__}")
permission = ProjectAuthorization.objects.filter(project=project, user__email=data.get("user_email"))

if permission.count() > 0:
Expand Down

0 comments on commit 24bc987

Please sign in to comment.