fix
This commit is contained in:
@@ -134,7 +134,7 @@ FundModel.prototype.addFund = async (txlist = [], option) => {
|
||||
mylog.error('充值行为记录失败', err.errmsg);
|
||||
});
|
||||
// 3.增加上家团队总额
|
||||
FundModel.findOneAndUpdate({ userId: option.inviter }, {
|
||||
option.inviter && FundModel.findOneAndUpdate({ userId: option.inviter }, {
|
||||
$inc: {
|
||||
groupFundSum: newSum
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user