fix linter issues

This commit is contained in:
jesopo 2022-08-10 13:14:12 +00:00
parent 5407e60412
commit 7c0d5f575c
3 changed files with 3 additions and 3 deletions

View File

@ -172,6 +172,6 @@ const defaultConfig: IConfig = {
export function read(): IConfig {
const content = fs.readFileSync(`./config/${process.env.NODE_ENV}.yaml`, "utf8");
const parsed = load(content);
const config = {...defaultConfig, ...parsed} as IConfig;
const config = {...defaultConfig, ...(parsed as object)} as IConfig;
return config;
}

View File

@ -1,6 +1,5 @@
import { HmacSHA1 } from "crypto-js";
import { getRequestFn, LogService, MatrixClient, MemoryStorageProvider, PantalaimonClient } from "matrix-bot-sdk";
import config from '../../src/config';
const REGISTRATION_ATTEMPTS = 10;
const REGISTRATION_RETRY_BASE_DELAY_MS = 100;

View File

@ -3,9 +3,10 @@
*/
import { makeMjolnir } from "./mjolnirSetupUtils";
import config from '../../src/config';
import { read as config_read } from '../../src/config';
(async () => {
const config = config_read();
let mjolnir = await makeMjolnir(config);
await mjolnir.start();
})();