Skip to content

Commit

Permalink
Respond
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Sep 3, 2024
1 parent 265ebdb commit 70f6149
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/serverActions/tomorrowio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export async function getWeatherForecastDaily(
console.log("Response:", JSON.stringify(responseData));
if ("code" in responseData) return responseData;

return {};
return responseData.timelines.hourly.map((hourly) => ({
time: hourly.time,
...hourly.values,
}));
},
[`${location.latitude},${location.longitude}`],
{
Expand Down

0 comments on commit 70f6149

Please sign in to comment.