✨ feat(icon): 保护代码
This commit is contained in:
@@ -141,7 +141,7 @@ export default class LadderMatchRec extends BaseModel {
|
||||
];
|
||||
const recs: LadderMatchRecType[] = await LadderMatchRecModel.aggregate(pipeline);
|
||||
for (let obj of recs) {
|
||||
if (obj.roleId2 === roleId && !obj.defenseInfo.isSuccess) return true;
|
||||
if (obj.roleId2 === roleId && (!obj.defenseInfo.isSuccess)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user