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

7 lines
179 B
JavaScript
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