scoreboard-xcpcio: fix banner validation

This commit is contained in:
undefined committed 2025-12-06 19:41:20 +08:00
1 parent 7918f63a2a
commit 41a2f2228f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -231,7 +231,7 @@ export async function apply(ctx: Context, config: ReturnType<typeof Config>) {
json: Types.Boolean,
realtime: Types.Boolean,
badge: Types.Boolean,
banner: Types.String,
banner: [...Types.String, true],
gold: Schema.transform(Schema.union([Schema.string(), Schema.number().step(1).min(0)]), (v) => +v).default(0),
silver: Schema.transform(Schema.union([Schema.string(), Schema.number().step(1).min(0)]), (v) => +v).default(0),
bronze: Schema.transform(Schema.union([Schema.string(), Schema.number().step(1).min(0)]), (v) => +v).default(0),