Merge pull request #225 from KiwiTechLLC/sprint5

remove threading from login api
This commit is contained in:
dilipshrivastwa-kiwi
2023-08-18 16:40:35 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -321,8 +321,8 @@ class UserLogin(viewsets.ViewSet):
ERROR_CODE["2069"],
response_status=status.HTTP_401_UNAUTHORIZED
)
# storing device id in using thread so the time would be reduced
threading.Thread(target=user_device_details, args=(user, device_id))
# storing device id in using celery task so the time would be reduced
user_device_details.delay(user, device_id)
return custom_response(SUCCESS_CODE['3003'], serializer, response_status=status.HTTP_200_OK)
else:
return custom_error_response(ERROR_CODE["2002"], response_status=status.HTTP_401_UNAUTHORIZED)
Binary file not shown.