Skip to content

Commit

Permalink
Merge pull request #129 from EthanRBrown/98-weather-data-and-sections…
Browse files Browse the repository at this point in the history
…-not-showing-on-page

Weather fix.
  • Loading branch information
EthanRBrown authored Jan 13, 2023
2 parents 054f115 + acb6499 commit 9c0a41f
Show file tree
Hide file tree
Showing 2 changed files with 6,120 additions and 13 deletions.
1 change: 1 addition & 0 deletions ch18-19/lib/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = locations => {
cache.refreshing = true
cache.forecasts = await Promise.all(cache.forecasts.map(updateForecast))
cache.refreshing = false
cache.lastRefreshed = Date.now()
}
return cache.forecasts
}
Expand Down
Loading

0 comments on commit 9c0a41f

Please sign in to comment.