活动:军团资金排行榜

This commit is contained in:
luying
2022-03-11 17:39:28 +08:00
parent ccbc8f66e0
commit 30192a2643
+1
View File
@@ -55,6 +55,7 @@ export default class Activity_Time_Limit_Rank extends BaseModel {
public static async getRank(serverId: number, activityId: number) { public static async getRank(serverId: number, activityId: number) {
let rec: ActivityTimeLimitRankModelType[] = await ActivityTimeLimitRankModel.find({ serverId, activityId }) let rec: ActivityTimeLimitRankModelType[] = await ActivityTimeLimitRankModel.find({ serverId, activityId })
.populate('role').populate('guild') .populate('role').populate('guild')
.populate('leader', { roleId: 1, roleName: 1, head: 1, frame: 1, spine: 1, lv: 1, quitTime: 1, ce: 1, title: 1, _id: 0 }, 'Role')
.sort({ score: -1, time: 1 }).lean(); .sort({ score: -1, time: 1 }).lean();
return rec; return rec;
} }