fix: remove slice(0,3) in weather API — return all 7 forecast days
All checks were successful
Deploy / deploy (push) Successful in 2m52s

This commit is contained in:
Cosmo
2026-04-22 20:36:40 +00:00
parent bc01443f03
commit 4bcfff775c

View File

@@ -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])),