diff --git a/geruecht/baruser/routes.py b/geruecht/baruser/routes.py index f809622..591281c 100644 --- a/geruecht/baruser/routes.py +++ b/geruecht/baruser/routes.py @@ -75,8 +75,10 @@ def _baradd(): type = 'credit' else: type = 'amount' + dic = user.toJSON() + dic['amount'] = abs(all) - return jsonify({"userId": user.uid, "amount": abs(all), 'locked': user.locked, 'type': type}) + return jsonify(dic) return jsonify({"error", "permission denied"}), 401 @baruser.route("/barGetUsers")