overleaf/services/track-changes/app/coffee/mongojs.coffee
2015-12-21 16:56:49 +00:00

9 lines
266 B
CoffeeScript

Settings = require "settings-sharelatex"
mongojs = require "mongojs"
bson = require "bson"
db = mongojs(Settings.mongo.url, ["docHistory", "projectHistoryMetaData", "docHistoryStats"])
module.exports =
db: db
ObjectId: mongojs.ObjectId
BSON: new bson.BSONPure()