overleaf/services/chat/app/coffee/mongojs.coffee
2016-12-16 16:52:50 +00:00

6 lines
179 B
CoffeeScript

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