electron-main: Use a capital letter for the seshat import.

pull/11125/head
Damir Jelić 2019-11-08 13:57:41 +01:00
parent 94196eb11b
commit a6839afc1f
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ const { migrateFromOldOrigin } = require('./originMigrator');
const windowStateKeeper = require('electron-window-state'); const windowStateKeeper = require('electron-window-state');
const Store = require('electron-store'); const Store = require('electron-store');
const seshat = require('seshat-node'); const Seshat = require('seshat-node');
const makeDir = require('make-dir'); const makeDir = require('make-dir');
if (argv["help"]) { if (argv["help"]) {
@ -223,7 +223,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
let p = path.normalize(path.join(eventStorePath, args[0])); let p = path.normalize(path.join(eventStorePath, args[0]));
try { try {
await makeDir(p); await makeDir(p);
eventIndex = new seshat(p); eventIndex = new Seshat(p);
console.log("Initialized event store"); console.log("Initialized event store");
} catch (e) { } catch (e) {
sendError(payload.id, e); sendError(payload.id, e);