寻宝:修复藏宝图占用的逻辑错误
This commit is contained in:
@@ -232,6 +232,11 @@ export default class ComBattleTeam extends BaseModel {
|
||||
return teams;
|
||||
}
|
||||
|
||||
public static async getBlueprtInUse(roleId: string, status: number, blueprtId: number, lean = true) {
|
||||
const teams: ComBattleTeamType[] = await ComBattleTeamModel.find({capId: roleId, status, blueprtId}).lean(lean);
|
||||
return teams;
|
||||
}
|
||||
|
||||
public static async getTeamByBlueprt(blueprtIds: number[], status: number, pub = true, limit = 50, lean = true) {
|
||||
const teams: ComBattleTeamType[] = await ComBattleTeamModel.find({blueprtId: {$in: blueprtIds}, status, pub}).limit(limit).lean(lean);
|
||||
return teams;
|
||||
|
||||
Reference in New Issue
Block a user