overleaf/services/web/app/coffee/infrastructure/mongojs.coffee

6 lines
178 B
CoffeeScript

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