From 353f2d03f39b4086380bc04759e469aa8cb7fc12 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 26 Sep 2023 14:37:56 +0200 Subject: [PATCH] Fix disabling bot --- CHANGELOG.md | 1 + server/lib/routers/api/configuration.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9152b740..d44f5215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/server/lib/routers/api/configuration.ts b/server/lib/routers/api/configuration.ts index 9b176747..e42e72b1 100644 --- a/server/lib/routers/api/configuration.ts +++ b/server/lib/routers/api/configuration.ts @@ -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) {