overleaf/services/docstore/app/coffee/mongojs.coffee

8 lines
186 B
CoffeeScript
Raw Normal View History

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