From 4bcfff775cf48dcbda3bcdbc5c96cbc00f99e269 Mon Sep 17 00:00:00 2001 From: Cosmo Date: Wed, 22 Apr 2026 20:36:40 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20slice(0,3)=20in=20weather=20API?= =?UTF-8?q?=20=E2=80=94=20return=20all=207=20forecast=20days?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/weather/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/weather/route.ts b/app/api/weather/route.ts index 829a0f3..8b8477b 100644 --- a/app/api/weather/route.ts +++ b/app/api/weather/route.ts @@ -67,7 +67,7 @@ export async function GET(req: Request) { const current = data.current; const daily = data.daily; - const forecast = (daily.time || []).slice(0, 3).map((date: string, i: number) => ({ + const forecast = (daily.time || []).map((date: string, i: number) => ({ date, maxTemp: String(Math.round(daily.temperature_2m_max[i])), minTemp: String(Math.round(daily.temperature_2m_min[i])),