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

11 lines
300 B
JavaScript
Raw Normal View History

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()
};