Skip to content

Commit

Permalink
Fix wrong cache timeout for bus arrivals API, disable it for now
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Oct 31, 2018
1 parent 79e18db commit 4b4f877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/arrival.js
Expand Up @@ -140,7 +140,7 @@ class ArrivalTimes extends Component {
const { busStop } = this.state;
if (!busStop) return;
const id = busStop.code;
fetchCache(`https://arrivelah.appspot.com/?id=${id}`, 5).then(results => {
fetch(`https://arrivelah.appspot.com/?id=${id}`).then(r => r.json()).then(results => {
this.setState({
services: results.services,
});
Expand Down

0 comments on commit 4b4f877

Please sign in to comment.