Skip to content

Commit

Permalink
Fixes issue to make lists fetch every 10 mins
Browse files Browse the repository at this point in the history
  • Loading branch information
409H committed Jun 13, 2018
1 parent 988aa26 commit cf1419c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/app/toggleTwitterValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function getTwitterLists()
twitter_lists.last_fetched = saved_settings.last_fetched;
}

if(twitter_lists.last_fetched <= Date.now()-600) {
if((Math.floor(Date.now() - twitter_lists.last_fetched)) > 600*1000) {
fetch("https://raw.githubusercontent.com/MrLuit/EtherScamDB/master/_data/twitter.json")
.then(res => res.json())
.then((lists) => {
Expand Down

0 comments on commit cf1419c

Please sign in to comment.