mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
fix: addresses issue with creating stories (#2442)
This commit is contained in:
committed by
Kim Gardner
parent
fdc6afec42
commit
4e548e8fbf
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user