mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
fix(api): configSchema
somehow something broke bcuz plugins like auto_delete and others don't have a `info.configSchema` at all???????
This commit is contained in:
parent
b28ca170ed
commit
0d1d9d08f6
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,6 @@ export function initDocs(router: express.Router) {
|
|||
|
||||
const plugin = guildPlugins.find((p) => p.name === name)!;
|
||||
const info = { ...baseInfo };
|
||||
delete info.configSchema;
|
||||
|
||||
const messageCommands = (plugin.messageCommands || []).map((cmd) => ({
|
||||
trigger: cmd.trigger,
|
||||
|
@ -135,6 +134,7 @@ export function initDocs(router: express.Router) {
|
|||
|
||||
const defaultOptions = plugin.defaultOptions || {};
|
||||
const configSchema = info.configSchema && formatZodConfigSchema(info.configSchema);
|
||||
delete info.configSchema;
|
||||
|
||||
res.json({
|
||||
name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue