From 894475c93ce363f7656357902cd9f7d01d4b357d Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 27 Oct 2021 04:49:08 +0100 Subject: [PATCH] move firstVersion to data.displayVersion in songs --- common/src/types.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/common/src/types.ts b/common/src/types.ts index 325e9bb71..f678a5b3f 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -849,24 +849,23 @@ export interface ChartDocument extends MongoDBD versions: GPTSupportedVersions[I][]; } interface SongDocumentData { - iidx: { genre: string }; - museca: { titleJP: string; artistJP: string }; - maimai: { titleJP: string; artistJP: string; genre: string }; - jubeat: Record; - popn: Record; - sdvx: Record; + iidx: { genre: string; displayVersion: string | null }; + museca: { titleJP: string; artistJP: string; displayVersion: string }; + maimai: { titleJP: string; artistJP: string; genre: string; displayVersion: string }; + jubeat: { displayVersion: string }; + popn: { displayVersion: string }; + sdvx: { displayVersion: string }; usc: Record; - ddr: Record; + ddr: { displayVersion: string }; bms: { genre: string | null; subtitle: string | null; subartist: string | null }; - chunithm: { genre: string }; - gitadora: { isHot: boolean }; + chunithm: { genre: string; displayVersion: string }; + gitadora: { isHot: boolean; displayVersion: string }; } export interface SongDocument extends MongoDBDocument { id: integer; title: string; artist: string; - firstVersion: string | null; searchTerms: string[]; altTitles: string[]; data: SongDocumentData[G];