We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac7c182 commit 121ad80Copy full SHA for 121ad80
src/main/core/broker/broker.js
@@ -33,9 +33,17 @@ module.exports = class Broker extends EventEmitter {
33
constructor(renderer) {
34
super()
35
this.renderer = renderer;
36
- this.db = new LinvoDB(DB)//, MOVIES_SCHEMA, {})
+
37
}
38
39
+ initDB() {
40
+ /**
41
+ * Initialize db
42
+ * @type {function(*=): void}
43
+ */
44
+ log.warn('Creating local db')
45
+ this.db = new LinvoDB(DB)//, MOVIES_SCHEMA, {})
46
+ }
47
48
flush() {
49
/**
@@ -183,6 +191,7 @@ module.exports = class Broker extends EventEmitter {
183
191
*/
184
192
// Clean old listeners first
185
193
log.info('Broker ready')
194
+ this.initDB();
186
195
this.stopIpcEvents();
187
196
this.emitStart();
188
197
this.listenForPartyRock();
0 commit comments