From f5d7109d4d8387f2e409dcef2f71bb2705ac485d Mon Sep 17 00:00:00 2001 From: Albert Chen Date: Tue, 15 Dec 2020 12:54:38 -0500 Subject: [PATCH] fetch new data package every hour --- src/stores/asyncDataStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/asyncDataStore.js b/src/stores/asyncDataStore.js index 357167082..9c382ea27 100644 --- a/src/stores/asyncDataStore.js +++ b/src/stores/asyncDataStore.js @@ -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',