From 91db770075f860d0258ccb4da3b06c3610e689ff Mon Sep 17 00:00:00 2001 From: zkldi Date: Fri, 21 May 2021 12:49:04 +0100 Subject: [PATCH] Dual-sort score-pbs for UpdateChartRanking --- server/src/score-import/framework/pb/create-pb-doc.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/score-import/framework/pb/create-pb-doc.ts b/server/src/score-import/framework/pb/create-pb-doc.ts index b55997800..3d0a73d86 100644 --- a/server/src/score-import/framework/pb/create-pb-doc.ts +++ b/server/src/score-import/framework/pb/create-pb-doc.ts @@ -61,6 +61,7 @@ export async function UpdateChartRanking(chartID: string) { { sort: { "scoreData.percent": -1, + timeAchieved: -1, }, } );