Fix disabling bot

This commit is contained in:
John Livingston 2023-09-26 14:37:56 +02:00
parent 89fb6a7ac6
commit 353f2d03f3
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
* Fix dark mode for buttons.
* Fix buttons margin.
* Don't validate hidden fields.
* Fix disabling bot.
* Help button on top of the "channels" page.
## 8.0.0

View File

@ -63,7 +63,7 @@ async function initConfigurationApiRouter (options: RegisterServerOptions, route
await getChannelConfigurationOptions(options, channelInfos.id) ??
getDefaultChannelConfigurationOptions(options)
req.body.bot = channelOptions.bot
req.body.bot.enable = false
req.body.bot.enabled = false
}
channelOptions = await sanitizeChannelConfigurationOptions(options, channelInfos.id, req.body)
} catch (err) {