添加天梯排行榜,修复setHour有时差的bug

This commit is contained in:
luying
2020-11-06 17:31:23 +08:00
parent bd93d9dc1c
commit 04ecef03b5
29 changed files with 285 additions and 148 deletions
-1
View File
@@ -41,7 +41,6 @@ export default class PvpDefense extends BaseModel {
}
public static async findByScale(roleId: string, min: number, max: number, lean = true) {
console.log(min, max);
const result = await PvpDefenseModel.find({ roleId: {$ne: roleId}, ce: { $lte: max, $gte: min } }).sort({updatedAt: -1}).limit(100).lean(lean);
return result;
}