Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dssecret committed Nov 21, 2023
1 parent fee9241 commit 9b76974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions controllers/api/faction/banking.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def vault_balance(*args, **kwargs):
@authentication_required
@ratelimit
def banking_request(*args, **kwargs):
return make_exception_response(
"0000",
f'tornium:ratelimit:{kwargs["user"].tid}',
details={"message": "This endpoint is temporarily disabled pending redesign"},
)

data = json.loads(request.get_data().decode("utf-8"))
client = rds()
key = f'tornium:ratelimit:{kwargs["user"].tid}'
Expand Down
2 changes: 1 addition & 1 deletion skynet/commands/faction/withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def withdraw(interaction, *args, **kwargs):
},
}

last_request = Withdrawal.select(Withdrawal.wid).order_by(-Withdrawal.time_requested).first()
last_request = Withdrawal.select(Withdrawal.wid).order_by(-Withdrawal.wid).first()

if last_request is None:
request_id = 0
Expand Down

0 comments on commit 9b76974

Please sign in to comment.