🐞 fix(gvg): 排行榜添加

This commit is contained in:
luying
2023-03-01 21:12:43 +08:00
parent 61de7b1c68
commit 1bb47dd958
3 changed files with 32 additions and 17 deletions

View File

@@ -205,8 +205,8 @@ export default class GVGTeam extends BaseModel {
return team;
}
public static async findRobotTeams(groupKey: string, cityId: number) {
const team: GVGTeamType[] = await GVGTeamModel.find({ groupKey, cityId, isRobot: true }).lean();
public static async findRobotTeams(configId: number, groupKey: string, cityId: number) {
const team: GVGTeamType[] = await GVGTeamModel.find({ configId, groupKey, cityId, isRobot: true }).lean();
return team;
}