Added daytime property
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user