From ea568040c92535d8ba481856af6ba2da35dfbef0 Mon Sep 17 00:00:00 2001 From: Shreyansh Sahare Date: Thu, 12 Sep 2024 12:47:26 +0530 Subject: [PATCH] action api --- apps/spotlight/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spotlight/views.py b/apps/spotlight/views.py index 4d61b0c..ad6511f 100644 --- a/apps/spotlight/views.py +++ b/apps/spotlight/views.py @@ -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)