From 5fcf4974fad476c361a9c348c3cf71da71429ab2 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Mon, 12 Dec 2022 20:31:26 +0000 Subject: [PATCH] feat: allow arrays in inGameID for jubeat:single --- common/src/lib/schemas.ts | 2 +- common/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/lib/schemas.ts b/common/src/lib/schemas.ts index 99b99d009..2b607ed7f 100644 --- a/common/src/lib/schemas.ts +++ b/common/src/lib/schemas.ts @@ -350,7 +350,7 @@ function GetChartDataForGPT(idString: IDStrings): PrudenceSchema { }; case "jubeat:Single": return { - inGameID: p.isPositiveInteger, + inGameID: p.or(p.isPositiveInteger, [p.isPositiveInteger]), isHardMode: "boolean", }; case "chunithm:Single": diff --git a/common/src/types.ts b/common/src/types.ts index c9731343e..eabee7e46 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -803,7 +803,7 @@ interface ChartDocumentData { inGameID: number; inGameStrID: string; }; - "jubeat:Single": { inGameID: integer; isHardMode: boolean }; + "jubeat:Single": { inGameID: Array | integer; isHardMode: boolean }; "museca:Single": { inGameID: integer }; "bms:7K": CDDataBMS; "bms:14K": CDDataBMS;