添加漏提交的代码

处理老用户缺 towerLv 字段问题
This commit is contained in:
liangtongchuan
2020-10-13 00:08:59 +08:00
parent 1fe7543da1
commit 1c455a9b49
6 changed files with 27 additions and 23 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ export default class Role extends BaseModel {
public static async setEventStatus(roleId: string, eventStatus: number, lean = true) {
const role = await RoleModel.findOneAndUpdate({ roleId }, { eventStatus }).lean(lean);
await RoleModel.findOneAndUpdate({ roleId }, { eventStatus }).lean(lean);
}
public static async towerLvUp(roleId: string, lean = true) {