mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-26 06:09:41 +00:00
remove threading from login api
This commit is contained in:
@ -321,8 +321,8 @@ class UserLogin(viewsets.ViewSet):
|
|||||||
ERROR_CODE["2069"],
|
ERROR_CODE["2069"],
|
||||||
response_status=status.HTTP_401_UNAUTHORIZED
|
response_status=status.HTTP_401_UNAUTHORIZED
|
||||||
)
|
)
|
||||||
# storing device id in using thread so the time would be reduced
|
# storing device id in using celery task so the time would be reduced
|
||||||
threading.Thread(target=user_device_details, args=(user, device_id))
|
user_device_details.delay(user, device_id)
|
||||||
return custom_response(SUCCESS_CODE['3003'], serializer, response_status=status.HTTP_200_OK)
|
return custom_response(SUCCESS_CODE['3003'], serializer, response_status=status.HTTP_200_OK)
|
||||||
else:
|
else:
|
||||||
return custom_error_response(ERROR_CODE["2002"], response_status=status.HTTP_401_UNAUTHORIZED)
|
return custom_error_response(ERROR_CODE["2002"], response_status=status.HTTP_401_UNAUTHORIZED)
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user