Skip to content

Commit

Permalink
chore: Remove config migration code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jan 15, 2023
1 parent b37fb09 commit 50a15a0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend/lib/Configuration.js
Expand Up @@ -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);

Expand Down

0 comments on commit 50a15a0

Please sign in to comment.