mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 07:20:08 +00:00
add missing error handler
This commit is contained in:
parent
2fbb148438
commit
8b02ba95b6
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,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