Make sure DbManager is also disposed

This commit is contained in:
Robert
2023-05-22 13:34:48 +01:00
parent 73e41f8d61
commit f855d81526

View File

@@ -17,7 +17,7 @@ export class DbModule extends DisposableObject {
super(); super();
this.dbConfigStore = new DbConfigStore(app); this.dbConfigStore = new DbConfigStore(app);
this.dbManager = new DbManager(app, this.dbConfigStore); this.dbManager = this.push(new DbManager(app, this.dbConfigStore));
} }
public static async initialize(app: App): Promise<DbModule> { public static async initialize(app: App): Promise<DbModule> {