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

7 lines
191 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
Settings = require "settings-sharelatex"
mongojs = require "mongojs"
db = mongojs(Settings.mongo.url, ["projects", "users", "userstubs"])
2014-02-12 10:23:40 +00:00
module.exports =
db: db
ObjectId: mongojs.ObjectId