Import Seshat from matrix-seshat

This commit is contained in:
Will Hunt 2020-05-05 18:58:02 +01:00 committed by GitHub
parent add2458a45
commit 8e129bb9ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ const afs = fs.promises;
let Seshat = null;
try {
Seshat = require('matrix-seshat');
Seshat = require('matrix-seshat').Seshat;
} catch (e) {
if (e.code === "MODULE_NOT_FOUND") {
console.log("Seshat isn't installed, event indexing is disabled.");