🐞 fix(gvg): 修复联军组建期相关的一些问题

This commit is contained in:
luying
2023-02-17 10:58:47 +08:00
parent d2267413d1
commit 4434ef5008
7 changed files with 56 additions and 27 deletions
+7 -2
View File
@@ -85,8 +85,13 @@ export default class GVGLeagueApply extends BaseModel {
return n;
}
public static async deleteAllGuildApply(guildCode: string) {
const n = await GVGLeagueApplyModel.deleteMany({ guildCode, type: GVG_APPLY_TYPE.APPLY });
public static async deleteByGuild(guildCode: string) {
const n = await GVGLeagueApplyModel.deleteMany({ guildCode });
return n;
}
public static async deleteByLeague(leagueCode: string) {
const n = await GVGLeagueApplyModel.deleteMany({ leagueCode });
return n;
}