fix: remove slice(0,3) in weather API — return all 7 forecast days
All checks were successful
Deploy / deploy (push) Successful in 2m52s
All checks were successful
Deploy / deploy (push) Successful in 2m52s
This commit is contained in:
@@ -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])),
|
||||
|
||||
Reference in New Issue
Block a user