Added daytime property

This commit is contained in:
2026-06-24 16:11:00 -04:00
parent fd534ede69
commit 4c36062b73
2 changed files with 6 additions and 12 deletions

View File

@@ -239,8 +239,3 @@ export async function refreshForecast() {
lastForecast = { ts: Date.now(), slots, summary: summarise(slots) }
return lastForecast
}
export async function ensureForecast() {
if (Date.now() - lastForecast.ts > TTL) await refreshForecast()
return lastForecast
}