From 9b130bd74fbef4ece10fab0b3f2eb9a772a55b78 Mon Sep 17 00:00:00 2001 From: Eric Pallad Date: Tue, 18 Jun 2024 09:14:26 +0200 Subject: [PATCH] bumped weather api version to 3.0 --- samples/weather-forecast/src/api/useWeather.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/weather-forecast/src/api/useWeather.ts b/samples/weather-forecast/src/api/useWeather.ts index 8f4e4e2..c79abb8 100644 --- a/samples/weather-forecast/src/api/useWeather.ts +++ b/samples/weather-forecast/src/api/useWeather.ts @@ -89,7 +89,7 @@ type ForecastOptions = { const getWeather = async ({ queryKey: [, options], }: QueryFunctionContext<[string, ForecastOptions]>) => { - const endpoint = "https://api.openweathermap.org/data/2.5/onecall"; + const endpoint = "https://api.openweathermap.org/data/3.0/onecall"; const { units = "standard", lang = options.lang ?? "en",