From 7c8f228f485be90cf12f98134c1ea6b463c2e6f4 Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 11 Apr 2017 14:02:08 +0100 Subject: [PATCH] Continuing flushing document on tpds worker error --- .../app/coffee/Features/Project/ProjectEntityHandler.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee index eefaeab6ab..b311f7fcd0 100644 --- a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee @@ -315,7 +315,10 @@ module.exports = ProjectEntityHandler = if modified # Don't need to block for marking as updated projectUpdateHandler.markAsUpdated project_id - tpdsUpdateSender.addDoc {project_id:project_id, path:path.fileSystem, doc_id:doc_id, project_name:project.name, rev:rev}, callback + tpdsUpdateSender.addDoc {project_id:project_id, path:path.fileSystem, doc_id:doc_id, project_name:project.name, rev:rev}, (error) -> + if error? + logger.err {err: error, project_id, doc_id, version}, "error sending doc to tpds, but continuing" + callback() else callback()