Skip to content

Commit

Permalink
fetch new data package every hour
Browse files Browse the repository at this point in the history
  • Loading branch information
atc3 committed Dec 15, 2020
1 parent 5ec918c commit f5d7109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/asyncDataStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ObservableAsyncDataStore {
try {
const res = await fetch(
'https://storage.googleapis.com/ve-public/data_package.json.gz?nocache=' +
new Date().getDate(),
Math.floor(new Date().getTime() / (1000 * 60 * 60)), // 1000 ms/s * 60 s/min * 60 min/hr
{
headers: {
'Accept-Encoding': 'gzip',
Expand Down

0 comments on commit f5d7109

Please sign in to comment.