Skip to content

Commit 288e432

Browse files
committed
fix
1 parent bd3afe1 commit 288e432

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ class Arguments:
894894
def mutate(self, info, user_id, name=None, email=None, encoded_image=None):
895895
existing_user = db_session.query(UserModel).filter(UserModel.id == user_id).first()
896896

897+
# quick-fix
897898
if not existing_user:
898899
raise GraphQLError("User with given id does not exist.")
899900
if int(get_jwt_identity()) != user_id:

0 commit comments

Comments
 (0)