From 99d3767a5ba5911a3e355499d91a2c978d50858c Mon Sep 17 00:00:00 2001 From: "sylvain.chateau" Date: Tue, 10 Sep 2024 23:05:35 +0200 Subject: [PATCH] f --- utils/getExternalWeather.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/getExternalWeather.js b/utils/getExternalWeather.js index 9f1e65c..cc386af 100644 --- a/utils/getExternalWeather.js +++ b/utils/getExternalWeather.js @@ -26,16 +26,14 @@ const getExternalWeather = async () => { isDay: Boolean(cursor.is_day), cloud: cursor.cloud_cover, conditionText: '', - conditionCode: 1, // cursor.weathercode + conditionCode: cursor.weathercode, humidity: cursor.relative_humidity_2m, windK: cursor.wind_speed_10m, windM: cursor.wind_speed_10m, }); return weatherData; } catch (err) { - // TODO to update - throw new Error(err); - //throw new Error('External API request failed'); + throw new Error('External API request failed'); } };