From f826028161194baa350678a05fdf84fe1030c593 Mon Sep 17 00:00:00 2001 From: haneulai Date: Thu, 22 Jan 2026 15:18:04 +0900 Subject: [PATCH] Fix: change timestamp column name to created_at --- app/routers/plants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routers/plants.py b/app/routers/plants.py index e9a7362..02c1cd6 100644 --- a/app/routers/plants.py +++ b/app/routers/plants.py @@ -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()