mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 07:07:31 +00:00
fix(weather): day-local named anchor, cache ttl and past-days forecast window (#2167)
This commit is contained in:
@@ -15,10 +15,10 @@ function release(): void {
|
||||
else active--
|
||||
}
|
||||
|
||||
export async function fetchWeather(lat: number, lng: number, date: string) {
|
||||
export async function fetchWeather(lat: number, lng: number, date: string, lang?: string) {
|
||||
await acquire()
|
||||
try {
|
||||
return await weatherApi.get(lat, lng, date)
|
||||
return await weatherApi.get(lat, lng, date, lang)
|
||||
} finally {
|
||||
release()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user