electron-main: Fix a couple of lint errors.
This commit is contained in:
@@ -51,7 +51,7 @@ let ReindexError;
|
|||||||
const seshatPassphrase = "DEFAULT_PASSPHRASE";
|
const seshatPassphrase = "DEFAULT_PASSPHRASE";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
seshatModule = require('matrix-seshat');
|
const seshatModule = require('matrix-seshat');
|
||||||
Seshat = seshatModule.Seshat;
|
Seshat = seshatModule.Seshat;
|
||||||
SeshatRecovery = seshatModule.SeshatRecovery;
|
SeshatRecovery = seshatModule.SeshatRecovery;
|
||||||
ReindexError = seshatModule.ReindexError;
|
ReindexError = seshatModule.ReindexError;
|
||||||
@@ -373,12 +373,12 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
// reindex the database and finally try to open the
|
// reindex the database and finally try to open the
|
||||||
// database again.
|
// database again.
|
||||||
try {
|
try {
|
||||||
recoveryIndex = new SeshatRecovery(eventStorePath, {
|
const recoveryIndex = new SeshatRecovery(eventStorePath, {
|
||||||
passphrase: seshatPassphrase
|
passphrase: seshatPassphrase,
|
||||||
});
|
});
|
||||||
await recoveryIndex.reindex();
|
await recoveryIndex.reindex();
|
||||||
eventIndex = new Seshat(eventStorePath, {
|
eventIndex = new Seshat(eventStorePath, {
|
||||||
passphrase: seshatPassphrase
|
passphrase: seshatPassphrase,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
sendError(payload.id, e);
|
sendError(payload.id, e);
|
||||||
|
|||||||
Reference in New Issue
Block a user