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

10 lines
312 B
JavaScript
Raw Normal View History

// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
const Settings = require("settings-sharelatex");
const mongojs = require("mongojs");
const db = mongojs(Settings.mongo.url, ["rooms", "messages"]);
module.exports = {
db,
2014-08-15 05:50:36 -04:00
ObjectId: mongojs.ObjectId
};