We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3afe1 commit 288e432Copy full SHA for 288e432
1 file changed
src/schema.py
@@ -894,6 +894,7 @@ class Arguments:
894
def mutate(self, info, user_id, name=None, email=None, encoded_image=None):
895
existing_user = db_session.query(UserModel).filter(UserModel.id == user_id).first()
896
897
+ # quick-fix
898
if not existing_user:
899
raise GraphQLError("User with given id does not exist.")
900
if int(get_jwt_identity()) != user_id:
0 commit comments