mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-11 14:41:17 +08:00
running leaderboard updates together
This commit is contained in:
parent
2dff0240a5
commit
9ca0a96d2d
1 changed files with 2 additions and 3 deletions
|
|
@ -89,9 +89,8 @@ app.listen(PORT, async () => {
|
|||
console.log("Database Connected");
|
||||
|
||||
let lbjob = new CronJob("0 */5 * * * *", async () => {
|
||||
await LeaderboardsDAO.update("time", "15", "english");
|
||||
|
||||
await LeaderboardsDAO.update("time", "60", "english");
|
||||
LeaderboardsDAO.update("time", "15", "english");
|
||||
LeaderboardsDAO.update("time", "60", "english");
|
||||
});
|
||||
lbjob.start();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue