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),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/scoreboard-xcpcio",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"version": "0.0.5-beta.9",
|
||||
"version": "0.0.5-beta.10",
|
||||
"main": "index.ts",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user