✨ feat(gvg): 添加红点
This commit is contained in:
@@ -41,6 +41,11 @@ export default class GVGLeagueApply extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findApplyFromLeagueWithoutPopulate(leagueCode: string) {
|
||||
const result: GVGLeagueApplyType[] = await GVGLeagueApplyModel.find({ leagueCode, type: GVG_APPLY_TYPE.APPLY }).select('_id').lean();
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findApplyFromLeague(leagueCode: string) {
|
||||
const result: GVGLeagueApplyType[] = await GVGLeagueApplyModel.find({ leagueCode, type: GVG_APPLY_TYPE.APPLY })
|
||||
.select({ _id: 0, guild: 1, guildCode: 1 })
|
||||
@@ -63,6 +68,11 @@ export default class GVGLeagueApply extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findInviteFromGuildWithoutPopulate(guildCode: string) {
|
||||
const result: GVGLeagueApplyType[] = await GVGLeagueApplyModel.find({ guildCode, type: GVG_APPLY_TYPE.INVITE }).select('_id').lean();
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async findInviteFromGuild(guildCode: string) {
|
||||
const result: GVGLeagueApplyType[] = await GVGLeagueApplyModel.find({ guildCode, type: GVG_APPLY_TYPE.INVITE })
|
||||
.select({ _id: 0, guild: 1, guildCode: 1 })
|
||||
|
||||
Reference in New Issue
Block a user