mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add missing error handler
This commit is contained in:
parent
c2b96c7e1e
commit
7adc67d13a
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ module.exports = DocManager =
|
|||
|
||||
getAllNonDeletedDocs: (project_id, filter, callback = (error, docs) ->) ->
|
||||
DocArchive.unArchiveAllDocs project_id, (error) ->
|
||||
if error?
|
||||
return callback(error)
|
||||
MongoManager.getProjectsDocs project_id, {include_deleted: false}, filter, (error, docs) ->
|
||||
if err?
|
||||
return callback(error)
|
||||
|
|
Loading…
Reference in a new issue