Skip to content

Commit

Permalink
Reference to Electron app was not properly imported
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Sep 8, 2022
1 parent 636d85c commit 8c74a69
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ApplicationMigration from "@/logic/application/ApplicationMigration";
import ConfigurationManager from "@/logic/configuration/ConfigurationManager";
import { app } from "@electron/remote";

/**
* The default path of the application that's used for storing custom databases changed in version 2.0.0-alpha.1 of
Expand All @@ -8,7 +9,7 @@ import ConfigurationManager from "@/logic/configuration/ConfigurationManager";
export default class ApplicationMigrationPreviousToV200alpha1 implements ApplicationMigration {
public async upgrade(): Promise<void> {
// Reset the configuration back to the default value.
const configManager = new ConfigurationManager();
const configManager = new ConfigurationManager(app);
const defaultConfig = await configManager.getDefaultConfiguration();
await configManager.writeConfiguration(defaultConfig);
}
Expand Down

0 comments on commit 8c74a69

Please sign in to comment.