From 7c06a8cfc48966bc8dc82b7f1528aefebff5ef31 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 12 Jan 2020 17:24:55 +0200 Subject: [PATCH] Fix error when loading old persist configs --- backend/src/plugins/Persist.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/plugins/Persist.ts b/backend/src/plugins/Persist.ts index 181679aa..3a43436c 100644 --- a/backend/src/plugins/Persist.ts +++ b/backend/src/plugins/Persist.ts @@ -11,6 +11,7 @@ import * as t from "io-ts"; const ConfigSchema = t.type({ persisted_roles: t.array(t.string), persist_nicknames: t.boolean, + persist_voice_mutes: t.boolean, // Deprecated, here to not break old configs }); type TConfigSchema = t.TypeOf; @@ -33,6 +34,7 @@ export class PersistPlugin extends ZeppelinPlugin { config: { persisted_roles: [], persist_nicknames: false, + persist_voice_mutes: false, }, }; }