后台:设置关卡等级
This commit is contained in:
@@ -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 } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user