fix: addresses issue with creating stories (#2442)

This commit is contained in:
Wyatt Johnson
2019-08-02 17:02:47 -04:00
committed by Kim Gardner
parent fdc6afec42
commit 4e548e8fbf
4 changed files with 78 additions and 21 deletions
@@ -7,6 +7,7 @@ export async function createMongoClient(config: Config): Promise<MongoClient> {
try {
return await MongoClient.connect(config.get("mongodb"), {
useNewUrlParser: true,
ignoreUndefined: true,
});
} catch (err) {
throw new InternalError(err, "could not connect to mongodb");