fix(admin): Correct variable name in add_money validation
This commit is contained in:
parent
94ed01c88a
commit
3c5550beed
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def add_money():
|
||||||
bid = data.get('bid')
|
bid = data.get('bid')
|
||||||
amount = data.get('amount')
|
amount = data.get('amount')
|
||||||
key = data.get('key')
|
key = data.get('key')
|
||||||
if not bid or not money or not key:
|
if not bid or not amount or not key:
|
||||||
return jsonify({"error": "BID, Amount and AdminKey are required"}), 400
|
return jsonify({"error": "BID, Amount and AdminKey are required"}), 400
|
||||||
if not _keychecker(key):
|
if not _keychecker(key):
|
||||||
return jsonify({"error":"Admin Key required"}), 403
|
return jsonify({"error":"Admin Key required"}), 403
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue