add missing error handler

This commit is contained in:
Henry Oswald 2017-03-10 10:36:48 +00:00
parent c2b96c7e1e
commit 7adc67d13a

View file

@ -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)