✨ feat(gvg): 备战期结束发放未领取邮件
This commit is contained in:
@@ -77,6 +77,11 @@ export default class GVGVestigeSumRank extends BaseModel {
|
||||
public static async receiveRanks(_ids: string[]) {
|
||||
await GVGVestigeSumRankModel.updateMany({ _id: { $in: _ids } }, { $set: { isReceived: true } });
|
||||
}
|
||||
|
||||
public static async getAllCanReceiveRanks(configId: number) {
|
||||
let result: GVGVestigeSumRankType[] = await GVGVestigeSumRankModel.find({ configId: { $lte: configId }, rank: { $gt: 0 }, isReceived: false }).lean();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
export const GVGVestigeSumRankModel = getModelForClass(GVGVestigeSumRank);
|
||||
|
||||
Reference in New Issue
Block a user