remove threading from login api

This commit is contained in:
jain
2023-08-18 16:37:42 +05:30
parent 51d3b77ff7
commit 5b236dfc81
2 changed files with 2 additions and 2 deletions

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)