🐞 fix(gvg): 添加退出游戏后撤退据点
This commit is contained in:
@@ -50,6 +50,10 @@ export default class GVGCityAreaPoint extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async playerLeave(configId: number, groupKey: string, roleId: string) {
|
||||
await GVGCityAreaPointModel.updateMany({ configId, groupKey, roleId }, { $set: { teamCode: '', roleId: '', roleName: '', leagueCode: '', leagueName: '' }});
|
||||
}
|
||||
|
||||
public static async findByConfig(configId: number, groupKey: string) {
|
||||
let result: GVGCityAreaPointType[] = await GVGCityAreaPointModel.find({ configId, groupKey }).lean();
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user