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

7 lines
179 B
CoffeeScript
Raw Normal View History

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