Fixed user mutation
This commit is contained in:
parent
4c5a8baed5
commit
223abbe66f
@ -40,7 +40,7 @@ class UserMutation(QueryABC):
|
||||
if "levelId" in input:
|
||||
level = self._levels.get_level_by_id(input["levelId"])
|
||||
user.xp = level.min_xp
|
||||
|
||||
else:
|
||||
user.xp = input["xp"] if "xp" in input else user.xp
|
||||
|
||||
self._users.update_user(user)
|
||||
|
Loading…
Reference in New Issue
Block a user