change return of addAmount in baruser for new frontend
This commit is contained in:
parent
d0a9345d68
commit
e42a97eca4
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue