fix: 定时任务标记矿晶失效,更改定时时间
This commit is contained in:
@@ -36,9 +36,9 @@ const doReward = async (user, fund) => {
|
|||||||
if (released === fund.releasedAmout) {
|
if (released === fund.releasedAmout) {
|
||||||
await Fund.findByIdAndUpdate(fund.id, {
|
await Fund.findByIdAndUpdate(fund.id, {
|
||||||
$set: {
|
$set: {
|
||||||
|
[`fundList.${i}.status`]: 2 //标记失效
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const allInviteReward = (+user.group.length || 0) * 10; // 计算出从开始到现在邀请奖励总额
|
const allInviteReward = (+user.group.length || 0) * 10; // 计算出从开始到现在邀请奖励总额
|
||||||
@@ -109,7 +109,7 @@ const jobs = [
|
|||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
type: 'every',
|
type: 'every',
|
||||||
slot: '0 3 * * * *',
|
slot: '0 0 3 * * * *',
|
||||||
priority: 'highest',
|
priority: 'highest',
|
||||||
unique: {
|
unique: {
|
||||||
id: 'mine'
|
id: 'mine'
|
||||||
|
|||||||
Reference in New Issue
Block a user