fix: 在用户创建时创建fund
This commit is contained in:
@@ -89,7 +89,7 @@ module.exports = {
|
||||
User.findByIdAndUpdate(inviter, { $push: { group: user.id } }).catch(err => {
|
||||
mylog.error('将被邀请人加入到邀请人队列失败', err && err.errmsg);
|
||||
});
|
||||
new Fund({userId: user.id })
|
||||
new Fund({userId: user.id }).save().catch(err => mylog.error('用户资金文档创建失败', err && err.errmsg));
|
||||
const token = createToken({
|
||||
userId: user.id
|
||||
}, JWT_SECRET, {});
|
||||
|
||||
Reference in New Issue
Block a user