fix:fix
This commit is contained in:
@@ -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: '刷新成功',
|
||||
|
||||
Reference in New Issue
Block a user