diff --git a/config.py b/config.py index 9dfe8d4..62a2adf 100644 --- a/config.py +++ b/config.py @@ -18,4 +18,4 @@ class Config: # Admin ADMIN_KEY = os.getenv('ADMIN_KEY') - COLLECT_COOLDOWN = os.getenv('COLLECT_COOLDOWN') + COLLECT_COOLDOWN = int(os.getenv('COLLECT_COOLDOWN', 24)) diff --git a/interbend/routes/transaction_routes.py b/interbend/routes/transaction_routes.py index e206a06..f0708a5 100644 --- a/interbend/routes/transaction_routes.py +++ b/interbend/routes/transaction_routes.py @@ -73,6 +73,9 @@ def collect(): return jsonify({"error": "A database error occurred, please try again later."}), 500 return jsonify({"message":"Salary Collected","New Balance":new_bal}), 200 + + +# this should be fine @transactions_bp.route('/transfer', methods=['POST']) @jwt_required def transfer():