Skip to content

Commit

Permalink
Update news every hour
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Jan 3, 2025
1 parent ac8c545 commit bd3ea81
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ export default {
this.displayNews = localStorage.displayNews === 'true'
}
this.fetchNews()
// Every 12hrs fetch news from the OpenC3 news site
setInterval(this.fetchNews, 12 * 60 * 60 * 1000)
// Every hour fetch news from the backend
// Note: the backend updates from news.openc3.org every 12 hours
setInterval(this.fetchNews, 60 * 60 * 1000)
},
methods: {
formatDate(date) {
Expand Down

0 comments on commit bd3ea81

Please sign in to comment.