overleaf/services/chat/app/js/mongojs.js
2018-12-20 14:13:56 -05:00

9 lines
312 B
JavaScript

// 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,
ObjectId: mongojs.ObjectId
};