fix远征:缺少玩家属性
This commit is contained in:
@@ -151,7 +151,7 @@ export default class PvpDefense extends BaseModel {
|
||||
|
||||
public static async findByScale(roleId: string, min: number, max: number, lean = true) {
|
||||
const result: PvpDefenseType[] = await PvpDefenseModel.find({ roleId: { $ne: roleId }, defCe: { $lte: max, $gte: min } })
|
||||
.populate('role', 'headHid sHid topFiveCe roleId roleName lv')
|
||||
.populate('role', 'headHid sHid topFiveCe roleId roleName lv globalCeAttr')
|
||||
.populate('heroes.hero')
|
||||
.sort({ updatedAt: -1 }).limit(100).lean(lean);
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user