mirror of
https://git.haroon.hackclub.app/haroon/osu-leaderboard.git
synced 2024-12-04 12:13:39 +00:00
i used a timeout not an interval 😭
This commit is contained in:
parent
b0905eca90
commit
92389c73b9
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -1097,5 +1097,5 @@ receiver.router.get('*', (req, res) => {
|
||||||
|
|
||||||
cacheStuff();
|
cacheStuff();
|
||||||
|
|
||||||
setTimeout(cacheStuff, 60 * 1000) // Cache every minute. Ratelimit is 1200 req/m anyways.
|
setInterval(cacheStuff, 60 * 1000) // Cache every minute. Ratelimit is 1200 req/m anyways.
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue