overleaf/services/docstore/app/coffee/mongojs.coffee
Henry Oswald 5861231548 docstore now only touches doc collection
- need to run migration 1 before using this for this to work
- added acceptence test so new documents updated should be upserted, not return 404
2015-02-26 14:54:08 +00:00

7 lines
174 B
CoffeeScript

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