fix web-server tsc不通过

This commit is contained in:
luying
2020-11-20 19:30:28 +08:00
parent a66106f4ea
commit d51a7119af
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -84,8 +84,9 @@ export default class ComBattleTeam extends BaseModel {
return team;
}
public static async updateResult(teamCode: string, roleId: string, isSuccess: boolean, lean = true) {
public static async updateResult(teamCode: string, roleId: string, isSuccess: boolean, _lean = true) {
let team = await ComBattleTeamModel.findOne({teamCode}).select('status roleStatus');
if(!team) return;
if (isSuccess === true) {
team.status = 2;
team.roleStatus.forEach(st => {