mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
upgrade east and check for null ids
This commit is contained in:
parent
6b1fcb002e
commit
d95443b432
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue