From 4ddd36ac08015f2b4f263bb793e90425f88d2d90 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 25 Nov 2021 05:32:37 +0000 Subject: [PATCH] Fix invalid game-stats-snapshots schema again --- server/src/external/mongo/schemas.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/external/mongo/schemas.ts b/server/src/external/mongo/schemas.ts index 263df8bfe..dfbf27036 100644 --- a/server/src/external/mongo/schemas.ts +++ b/server/src/external/mongo/schemas.ts @@ -397,7 +397,10 @@ export const DatabaseSchemas: Record = { return prSchemaify( Object.assign(PR_GameStats(game, playtype, gptConfig), { rankings: Object.fromEntries( - gptConfig.profileRatingAlgs.map((e) => [e, p.isPositiveNonZeroInteger]) + gptConfig.profileRatingAlgs.map((e) => [ + e, + { outOf: p.isPositiveNonZeroInteger, ranking: p.isPositiveNonZeroInteger }, + ]) ), playcount: p.isPositiveInteger, timestamp: p.isPositive,