Skip to content

Commit

Permalink
updated time to refresh content
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Gottschlich committed Jul 17, 2020
1 parent 5fec9d6 commit 6113c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SocialAmnesia2.0/src/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ const refreshRedditAccessToken = () => {
redditGatherAndSetItems();

// the reddit API requires you to get a new access token every hour
// we do it at 59 minutes because we real rebels here
// we do it every 10 minutes because I don't trust reddit
redditAccessTokenTimer = setTimeout(() => {
refreshRedditAccessToken();
}, 3540000);
}, 600000);
};

const refreshTwitterContent = () => {
Expand All @@ -226,7 +226,7 @@ const refreshTwitterContent = () => {

twitterContentTimer = setTimeout(() => {
refreshTwitterContent();
}, 3600000);
}, 600000);
};

// see https://stackoverflow.com/questions/4959975/generate-random-number-between-two-numbers-in-javascript
Expand Down

0 comments on commit 6113c87

Please sign in to comment.