mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
fix linter issues
This commit is contained in:
parent
5407e60412
commit
7c0d5f575c
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user