🐞 fix(gvg): 修复联军组建期相关的一些问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user