fix: 定时任务标记矿晶失效,更改定时时间

This commit is contained in:
chaosBreaking
2019-09-29 00:49:06 +08:00
parent ade2a8d9b3
commit a63e66481f

View File

@@ -36,9 +36,9 @@ const doReward = async (user, fund) => {
if (released === fund.releasedAmout) {
await Fund.findByIdAndUpdate(fund.id, {
$set: {
[`fundList.${i}.status`]: 2 //标记失效
}
})
});
continue;
}
const allInviteReward = (+user.group.length || 0) * 10; // 计算出从开始到现在邀请奖励总额
@@ -109,7 +109,7 @@ const jobs = [
done();
},
type: 'every',
slot: '0 3 * * * *',
slot: '0 0 3 * * * *',
priority: 'highest',
unique: {
id: 'mine'