overleaf/services/chat/app/coffee/mongojs.coffee
2014-08-15 10:50:36 +01:00

6 lines
187 B
CoffeeScript

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