Fix: change timestamp column name to created_at

This commit is contained in:
haneulai 2026-01-22 15:18:04 +09:00
parent 8878303cac
commit f826028161

View File

@ -55,7 +55,7 @@ async def get_plants_by_company(
log_response = db.table("solar_logs") \
.select("*") \
.eq("plant_id", plant["id"]) \
.order("timestamp", desc=True) \
.order("created_at", desc=True) \
.limit(1) \
.execute()
@ -119,7 +119,7 @@ async def get_plant_detail(
logs_response = db.table("solar_logs") \
.select("*") \
.eq("plant_id", plant_id) \
.order("timestamp", desc=True) \
.order("created_at", desc=True) \
.limit(10) \
.execute()