[CORL-331] Better tests with types (#2270)

* feat: suspending, banning, now propogation

* feat: new mutation api with hooks support

* feat: better types in tests and refactor

* fix: lint
This commit is contained in:
Kiwi
2019-04-23 19:46:14 +00:00
committed by Wyatt Johnson
parent dbbc1af42e
commit 5150cdf60e
136 changed files with 2546 additions and 2465 deletions
+3 -4
View File
@@ -5,10 +5,9 @@ import { InternalError } from "talk-server/errors";
export async function createMongoClient(config: Config): Promise<MongoClient> {
try {
return await MongoClient.connect(
config.get("mongodb"),
{ useNewUrlParser: true }
);
return await MongoClient.connect(config.get("mongodb"), {
useNewUrlParser: true,
});
} catch (err) {
throw new InternalError(err, "could not connect to mongodb");
}