🐞 fix(gvg): 联军信息变动同步

This commit is contained in:
luying
2023-02-27 21:54:54 +08:00
parent 1f04496865
commit a89692f4ef
11 changed files with 121 additions and 11 deletions
+4
View File
@@ -54,6 +54,10 @@ export default class GVGCityAreaPoint extends BaseModel {
let result: GVGCityAreaPointType[] = await GVGCityAreaPointModel.find({ configId, groupKey }).lean();
return result
}
public static async updateLeagueName(leagueCode: string, leagueName: string) {
await GVGCityAreaPointModel.updateMany({ leagueCode }, { $set: { leagueName }});
}
}