后台:设置关卡等级

This commit is contained in:
luying
2021-12-17 20:44:15 +08:00
parent 07e12ccf9e
commit 3ca6d99dc7
6 changed files with 52 additions and 36 deletions

View File

@@ -41,6 +41,9 @@ export default class RScriptRecord extends BaseModel {
return items;
}
public static async deleteByWarType(roleId: string, warType: number) {
return await RScriptRecordModel.deleteMany({ roleId, warType });
}
public static async deleteByWarId(roleId: string, battleId: number[]) {
return await RScriptRecordModel.deleteMany({ roleId, battleId: { $in: battleId } });
}