overleaf/services/track-changes/app/coffee/mongojs.coffee
2015-08-06 11:11:43 -03:00

8 lines
234 B
CoffeeScript

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