活动:排行顺序修改

This commit is contained in:
luying
2022-03-10 20:15:33 +08:00
parent 68b90da4ed
commit 9b3501d0eb
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ export default class Activity_Time_Limit_Rank extends BaseModel {
public static async getRank(serverId: number, activityId: number) {
let rec: ActivityTimeLimitRankModelType[] = await ActivityTimeLimitRankModel.find({ serverId, activityId })
.populate('role').populate('guild')
.sort({ score: 1, time: -1 }).lean();
.sort({ score: -1, time: 1 }).lean();
return rec;
}
}