overleaf/services/docstore/app/coffee/mongojs.coffee
2016-11-28 14:55:16 +00:00

7 lines
184 B
CoffeeScript

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