Merge branch 'upgrade-mongojs'

This commit is contained in:
Brian Gough 2015-12-17 16:31:04 +00:00
commit 9f69c95192
4 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,6 @@
async = require "async"
_ = require "underscore"
{db, ObjectId} = require "./mongojs"
BSON=db.bson.BSON
{db, ObjectId, BSON} = require "./mongojs"
logger = require "logger-sharelatex"
LockManager = require "./LockManager"

View file

@ -1,7 +1,6 @@
async = require "async"
_ = require "underscore"
{db, ObjectId} = require "./mongojs"
BSON=db.bson.BSON
{db, ObjectId, BSON} = require "./mongojs"
logger = require "logger-sharelatex"
logger.initialize("track-changes-packworker")
LockManager = require "./LockManager"

View file

@ -1,8 +1,9 @@
Settings = require "settings-sharelatex"
mongojs = require "mongojs"
db = mongojs.connect(Settings.mongo.url, ["docHistory", "projectHistoryMetaData", "docHistoryStats"])
bson = require "bson"
db = mongojs(Settings.mongo.url, ["docHistory", "projectHistoryMetaData", "docHistoryStats"])
module.exports =
db: db
ObjectId: mongojs.ObjectId
BSON: bson

View file

@ -8,13 +8,14 @@
},
"dependencies": {
"async": "~0.2.10",
"bson": "^0.4.20",
"cli": "^0.6.6",
"express": "3.3.5",
"line-reader": "^0.2.4",
"mongojs": "^0.18.1",
"mongojs": "^1.4.1",
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.0.0",
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#v1.1.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.0.0",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#v1.4.0",
"request": "~2.33.0",
"redis-sharelatex": "~0.0.9",
"redis": "~0.10.1",