mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 14:00:51 +00:00
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
// TODO: This file was created by bulk-decaffeinate.
|
|
// Sanity-check the conversion and remove this comment.
|
|
const Settings = require('settings-sharelatex')
|
|
const mongojs = require('mongojs')
|
|
const bson = require('bson')
|
|
const db = mongojs(Settings.mongo.url, [
|
|
'docHistory',
|
|
'projectHistoryMetaData',
|
|
'docHistoryIndex'
|
|
])
|
|
module.exports = {
|
|
db,
|
|
ObjectId: mongojs.ObjectId,
|
|
BSON: new bson.BSONPure()
|
|
}
|