change schemas to reflect new isPrimary style

This commit is contained in:
zkldi
2021-04-28 03:23:10 +01:00
parent a9436fc78c
commit c2ad56041c
+2 -2
View File
@@ -331,6 +331,8 @@ const PRUDENCE_CHART_BASE: PrudenceSchema = {
levelNum: p.isPositive,
length: "?string",
bpmString: "?string",
isPrimary: "boolean",
versions: ["string"],
};
function CreatePrChart(game: Game, flags: string[], data: PrudenceSchema) {
@@ -377,10 +379,8 @@ const PRUDENCE_SONG_BASE: PrudenceSchema = {
id: p.isPositiveInteger,
title: "string",
artist: "string",
isAvailable: "boolean",
"search-titles": [p.and("string", (self, parent) => self !== parent.title)],
"alt-titles": [p.and("string", (self, parent) => self !== parent.title)],
versions: ["string"],
firstVersion: "string",
};