overleaf/services/document-updater/app/coffee/mongojs.coffee

7 lines
174 B
CoffeeScript

Settings = require "settings-sharelatex"
mongojs = require "mongojs"
db = mongojs(Settings.mongo.url, ["docSnapshots"])
module.exports =
db: db
ObjectId: mongojs.ObjectId