overleaf/services/web/app/coffee/infrastructure/mongojs.coffee
2018-06-21 10:22:08 +01:00

6 lines
201 B
CoffeeScript

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