[misc] mongodb: use the new db connector by default
mongojs was enabling it by default as well.
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
const Settings = require('settings-sharelatex')
|
||||
const { MongoClient, ObjectId } = require('mongodb')
|
||||
|
||||
const clientPromise = MongoClient.connect(Settings.mongo.url)
|
||||
const clientPromise = MongoClient.connect(
|
||||
Settings.mongo.url,
|
||||
Settings.mongo.options
|
||||
)
|
||||
|
||||
let setupDbPromise
|
||||
async function waitForDb() {
|
||||
|
||||
Reference in New Issue
Block a user