From dfd729af1df45977df09c0b6c5ef6e1552bf63d7 Mon Sep 17 00:00:00 2001 From: Kokomi <102026640+yoimiya-kokomi@users.noreply.github.com> Date: Sun, 13 Nov 2022 11:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20#=E9=9D=A2=E6=9D=BF=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E4=B8=AD=E7=9A=84=E6=8E=92=E5=90=8D=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/ProfileRank.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ProfileRank.js b/models/ProfileRank.js index 49ce9bc1..18033bf9 100644 --- a/models/ProfileRank.js +++ b/models/ProfileRank.js @@ -30,7 +30,7 @@ export default class ProfileRank { for (let typeKey of ['mark', 'dmg']) { let typeRank = await this.getTypeRank(profile, typeKey, force) ret[typeKey] = typeRank - if (!ret.rank || ret.rank <= typeRank.rank) { + if (!ret.rank || ret.rank >= typeRank.rank) { ret.rank = typeRank.rank ret.rankType = typeKey }