(fix) admin ui - order spend by date

This commit is contained in:
Ishaan Jaff 2024-03-16 16:15:10 -07:00
parent 732ab69d32
commit 2355e9dc51

View file

@ -4520,7 +4520,7 @@ async def global_spend_logs(
code=status.HTTP_500_INTERNAL_SERVER_ERROR, code=status.HTTP_500_INTERNAL_SERVER_ERROR,
) )
if api_key is None: if api_key is None:
sql_query = """SELECT * FROM "MonthlyGlobalSpend";""" sql_query = """SELECT * FROM "MonthlyGlobalSpend" ORDER BY "date";"""
response = await prisma_client.db.query_raw(query=sql_query) response = await prisma_client.db.query_raw(query=sql_query)