running leaderboard updates together

This commit is contained in:
Jack 2021-09-10 00:50:47 +01:00
parent 2dff0240a5
commit 9ca0a96d2d

View file

@ -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();
});