From 50a15a06c20dd3b4c28a0c61b26a8d09f8f7195d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Beye?= Date: Sun, 15 Jan 2023 11:47:59 +0100 Subject: [PATCH] chore: Remove config migration code --- backend/lib/Configuration.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/backend/lib/Configuration.js b/backend/lib/Configuration.js index 266431befc..becff7b219 100644 --- a/backend/lib/Configuration.js +++ b/backend/lib/Configuration.js @@ -75,16 +75,6 @@ class Configuration { const config = fs.readFileSync(this.location, {"encoding": "utf-8"}).toString(); const parsedConfig = JSON.parse(config); - // BEGIN migration code to be removed with the next version - if (parsedConfig.oobe === undefined) { - Logger.info("Looks like this might be an existing Valetudo installation. Hiding welcome dialog"); - - parsedConfig.oobe = { - welcomeDialogDismissed: true - }; - } - // END migration code to be removed with the next version - if (!ajv.validate(SCHEMAS.components.schemas.Configuration, parsedConfig)) { Logger.error("Error while validating configuration file", ajv.errors);