mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
scoreboard-xcpcio: fix banner validation
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user