From bc93d8bdabb96cc0f4388868a4e97f52d7037e63 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 6 Jun 2022 21:52:25 +0100 Subject: [PATCH] fix: use lte/gte --- .../import-types/common/batch-manual/converter.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/lib/score-import/import-types/common/batch-manual/converter.ts b/server/src/lib/score-import/import-types/common/batch-manual/converter.ts index c5513af73..30a3634ce 100644 --- a/server/src/lib/score-import/import-types/common/batch-manual/converter.ts +++ b/server/src/lib/score-import/import-types/common/batch-manual/converter.ts @@ -59,6 +59,12 @@ export const ConverterBatchManual: ConverterFunction= 100_000) { + throw new InvalidScoreFailure( + `The percent you passed for this jubeat score was less than 1, but the score was above 100k. This is not possible. Have you sent percent as a number between 0 and 1?` + ); + } + if (data.percent > 100 && !(chart as ChartDocument<"jubeat:Single">).data.isHardMode) { throw new InvalidScoreFailure(`The percent field must be <= 100 for normal mode.`); }