feat: 更新定时发送排名信息的频率为每1小时
All checks were successful
Egg CI/CD / build-image (push) Successful in 45s
Egg CI/CD / deploy (push) Successful in 1m10s

This commit is contained in:
zhaoyingbo 2024-06-17 09:23:49 +00:00
parent 2f682b6a18
commit 4fd11f3569

View File

@ -5,9 +5,8 @@ import sendRank from "./rank";
export const initSchedule = async () => {
// 定时任务每15分钟刷新一次token
schedule.scheduleJob("*/15 * * * *", resetAccessToken);
// 每天的早九到晚九点,每20分钟发送一次排行榜
schedule.scheduleJob("*/20 9-21 * * *", sendRank);
// 每天的早九到晚九点,每1小时发送一次排行榜
schedule.scheduleJob("0 9-21 * * *", sendRank);
// 立即执行一次
resetAccessToken();
sendRank();
};