mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 22:38:02 +03:00
Fix invalid game-stats-snapshots schema again
This commit is contained in:
Vendored
+4
-1
@@ -397,7 +397,10 @@ export const DatabaseSchemas: Record<Databases, ValidatorFunction> = {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user