overleaf/services/document-updater/app/coffee/mongojs.coffee
2014-02-12 10:40:42 +00:00

7 lines
176 B
CoffeeScript

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