diff --git a/kdb-bot/src/bot_graphql/mutations/user_mutation.py b/kdb-bot/src/bot_graphql/mutations/user_mutation.py index 6a852c2e..c601aab9 100644 --- a/kdb-bot/src/bot_graphql/mutations/user_mutation.py +++ b/kdb-bot/src/bot_graphql/mutations/user_mutation.py @@ -40,8 +40,8 @@ class UserMutation(QueryABC): if "levelId" in input: level = self._levels.get_level_by_id(input["levelId"]) user.xp = level.min_xp - - user.xp = input["xp"] if "xp" in input else user.xp + else: + user.xp = input["xp"] if "xp" in input else user.xp self._users.update_user(user) self._db.save_changes()