overleaf/services/track-changes/app/js/mongojs.js

13 lines
409 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 bson = require("bson");
const db = mongojs(Settings.mongo.url, ["docHistory", "projectHistoryMetaData", "docHistoryIndex"]);
module.exports = {
db,
ObjectId: mongojs.ObjectId,
2015-12-21 11:56:49 -05:00
BSON: new bson.BSONPure()
};