Merge pull request #559 from sharelatex/sk-node-6

Update to node6
This commit is contained in:
Shane Kilkelly 2017-09-06 10:51:38 +01:00 committed by GitHub
commit 4adf7378e2
3 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
0.10.26
6.11.2

View file

@ -1,4 +1,6 @@
Settings = require "settings-sharelatex"
bson = require('bson')
BSON = new bson()
fs = require("fs")
mongojs = require("mongojs")
ObjectId = mongojs.ObjectId
@ -61,7 +63,7 @@ getAllDocs = (project_id, callback = (error, docs) ->) ->
if !project?
console.log "no such project #{project_id}"
return callback()
size = require("../node_modules/mongojs/node_modules/mongodb/node_modules/bson/").BSONPure.BSON.calculateObjectSize(project)
size = BSON.calculateObjectSize(project)
if size > 12000000 #12mb
return markProjectAsToLargeAndFinished project_id, callback
findAllDocsInProject project, (error, docs) ->

View file

@ -10,7 +10,7 @@
"grunt-shell": "^1.1.1",
"load-grunt-config": "^0.19.2",
"lodash": "^3.0.0",
"mongojs": "^0.18.1",
"mongojs": "2.4.0",
"redis": "^2.6.2",
"rimraf": "~2.2.6",
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git",