Compare commits
1 Commits
b571180b89
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fb9be9dee |
@@ -59,8 +59,8 @@ export function validateYonexusServerConfig(raw: unknown): YonexusServerConfig {
|
||||
.filter((value) => value.length > 0)
|
||||
: [];
|
||||
|
||||
if (!Array.isArray(rawIdentifiers) || followerIdentifiers.length === 0) {
|
||||
issues.push("followerIdentifiers must contain at least one non-empty identifier");
|
||||
if (!Array.isArray(rawIdentifiers)) {
|
||||
issues.push("followerIdentifiers must be an array");
|
||||
}
|
||||
|
||||
if (new Set(followerIdentifiers).size !== followerIdentifiers.length) {
|
||||
|
||||
@@ -19,6 +19,6 @@
|
||||
"listenPort": { "type": "number" },
|
||||
"publicWsUrl": { "type": "string" }
|
||||
},
|
||||
"required": ["followerIdentifiers", "notifyBotToken", "adminUserId", "listenPort"]
|
||||
"required": ["notifyBotToken", "adminUserId", "listenPort"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user