添加漏提交的代码

处理老用户缺 towerLv 字段问题
This commit is contained in:
liangtongchuan
2020-10-13 00:08:54 +08:00
parent 1fe7543da1
commit 1c455a9b49
6 changed files with 27 additions and 23 deletions

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) {

View File

@@ -1,7 +1,5 @@
import { RoleModel } from './Role';
import BaseModel from './BaseModel';
import { index, getModelForClass, prop } from '@typegoose/typegoose';
import { stringify } from 'querystring';
class WarStatus {
@prop({ required: true })