This commit is contained in:
chaosBreaking
2019-09-29 13:27:33 +08:00
parent 1c127a0746
commit dcd1d2ada1

View File

@@ -246,7 +246,7 @@ module.exports = {
}
});
}
const [newFund, actions] = await Promise.all([
let [newFund, actions] = await Promise.all([
fund.addFund(list, { inviter }),
Action.find({ userId, type: 1, createdAt: { $gt: start, $lt: now } })
]);
@@ -254,6 +254,7 @@ module.exports = {
let revenueLastday = calRevenueLastday(actions);
// 筛选有效矿晶
let activeFund = getActiveFund(fund.fundList);
if (!newFund || !newFund.fundList) newFund = fund;
return res.json({
code: 0,
msg: '刷新成功',