Skip to content

Commit

Permalink
action api
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyanshs7 committed Sep 12, 2024
1 parent 70b7e49 commit ea56804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/spotlight/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def post(self, request, *args, **kwargs):

try:
ActionService.action(code=code, workspace_id=workspace_id)
return JsonResponse(data={"message": "Action triggered successfully"}, status_code=200)
return JsonResponse(data={"message": "Action triggered successfully"}, status=200)
except Exception as e:
print(e)
return JsonResponse(data={"message": "Action failed"}, status_code=500)
return JsonResponse(data={"message": "Action failed"}, status=500)

0 comments on commit ea56804

Please sign in to comment.