overleaf/services/chat/app/coffee/mongojs.coffee

7 lines
187 B
CoffeeScript
Raw Normal View History

2014-08-15 05:50:36 -04:00
Settings = require("settings-sharelatex")
mongojs = require "mongojs"
db = mongojs.connect(Settings.mongo.url, ["rooms", "messages"])
module.exports =
db: db
ObjectId: mongojs.ObjectId