定时任务:名将擂台奖励serverId错误
This commit is contained in:
@@ -769,8 +769,8 @@ export async function cancelLadderCountDown(battleCode: string) {
|
||||
async function ladderDailyReward() {
|
||||
scheduleJob('ladderDailyReward', '0 0 22 * * ?', async () => {
|
||||
let servers = await ServerlistModel.findByEnv(pinus.app.get('env'));
|
||||
for(let { serverId } of servers) {
|
||||
await sendLadderDailyReward(serverId);
|
||||
for(let { id } of servers) {
|
||||
await sendLadderDailyReward(id);
|
||||
}
|
||||
});
|
||||
let recs = await LadderMatchRecModel.getUncompleteData();
|
||||
|
||||
Reference in New Issue
Block a user