活动:排行顺序修改
This commit is contained in:
@@ -55,7 +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')
|
||||||
.sort({ score: 1, time: -1 }).lean();
|
.sort({ score: -1, time: 1 }).lean();
|
||||||
return rec;
|
return rec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user