Skip to content

Commit

Permalink
missed commiting
Browse files Browse the repository at this point in the history
  • Loading branch information
rashikaqureshi committed Jul 21, 2020
1 parent 32ae370 commit f8c5f94
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/api/validations/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,6 @@ def validate_update_profile_request_data(data):

if "available_to_mentor" in data and data["available_to_mentor"] is None:
return messages.FIELD_AVAILABLE_TO_MENTOR_IS_INVALID
if not username and not name:
return messages.USER_AND_USERNAME_FIELD_IS_MISSING,HTTPStatus.OK

if not username:
return messages.USERNAME_FIELD_IS_MISSING,HTTPStatus.OK

if not name:
return messages.NAME_FIELD_IS_MISSING,HTTPStatus.OK

return {}

Expand Down

0 comments on commit f8c5f94

Please sign in to comment.