diff --git a/migrations/1_move_doc_lines_to_doc_collection.coffee b/migrations/1_move_doc_lines_to_doc_collection.coffee index d1f94638b3..8712cf9f54 100644 --- a/migrations/1_move_doc_lines_to_doc_collection.coffee +++ b/migrations/1_move_doc_lines_to_doc_collection.coffee @@ -26,6 +26,7 @@ loadProjectIds = (callback)-> console.log "loading project ids from #{all_projects_path}" fs.readFile all_projects_path, "utf-8", (err, data)-> ids = data.split("\n") + ids = _.filter ids, (id)-> id? and id.length == 24 console.log "loaded #{ids.length} project ids from #{all_projects_path}" callback err, ids diff --git a/migrations/2_doc_lines_delete_from_project.coffee b/migrations/2_doc_lines_delete_from_project.coffee index 1e6a13dbf7..2d5222f63d 100644 --- a/migrations/2_doc_lines_delete_from_project.coffee +++ b/migrations/2_doc_lines_delete_from_project.coffee @@ -25,6 +25,7 @@ loadProjectIds = (callback)-> console.log "loading project ids from #{all_projects_path}" fs.readFile all_projects_path, "utf-8", (err, data)-> ids = data.split("\n") + ids = _.filter ids, (id)-> id? and id.length == 24 console.log "loaded #{ids.length} project ids from #{all_projects_path}" callback err, ids diff --git a/package.json b/package.json index cee7ffc776..6b28b15e29 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "An online collaborative LaTeX editor", "dependencies": { "async": "^0.9.0", - "east": "^0.2.3", + "east": "0.5.1", "east-mongo": "^0.1.2", "grunt-shell": "^1.1.1", "lodash": "^3.0.0",