Reformat with prettier

pull/102/head
Skyler Grey 3 years ago
parent 6cfe926586
commit 2e13b6b431
Signed by: Minion3665
GPG Key ID: 1AFD10256B3C714D

@ -21,8 +21,8 @@ if ("password" in config.mongoOptions) password = encodeURIComponent(config.mong
const mongoClient = new MongoClient(
username
? `mongodb://${username}:${password}@${config.mongoOptions.host}/${config.mongoOptions.database}`
+ `?authMechanism=DEFAULT&authSource=${config.mongoOptions.authSource}`
? `mongodb://${username}:${password}@${config.mongoOptions.host}/${config.mongoOptions.database}` +
`?authMechanism=DEFAULT&authSource=${config.mongoOptions.authSource}`
: `mongodb://${config.mongoOptions.host}`
);
await mongoClient.connect();

Loading…
Cancel
Save