diff --git a/crud.py b/crud.py index 83dd059..2793ba9 100644 --- a/crud.py +++ b/crud.py @@ -92,7 +92,7 @@ async def get_withdraw_links(wallet_ids: Union[str, List[str]]) -> List[Withdraw q = ",".join(["?"] * len(wallet_ids)) rows = await db.fetchall( - f"SELECT * FROM withdraw.withdraw_link WHERE wallet IN ({q})", (*wallet_ids,) + f"SELECT * FROM withdraw.withdraw_link WHERE wallet IN ({q}) ORDER BY open_time DESC", (*wallet_ids,) ) return [WithdrawLink(**row) for row in rows]