overleaf/services/track-changes/app/coffee/mongojs.coffee

10 lines
266 B
CoffeeScript
Raw Normal View History

Settings = require "settings-sharelatex"
mongojs = require "mongojs"
2015-12-17 09:11:44 -05:00
bson = require "bson"
db = mongojs(Settings.mongo.url, ["docHistory", "projectHistoryMetaData", "docHistoryIndex"])
module.exports =
db: db
ObjectId: mongojs.ObjectId
2015-12-21 11:56:49 -05:00
BSON: new bson.BSONPure()