From 6e2af763ecb941c30a35f4b11fe814c340220e0f Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 1 Feb 2018 12:49:25 +0000 Subject: [PATCH] Revert "Bail out if history API request fails" --- .../coffee/Features/History/HistoryController.coffee | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/services/web/app/coffee/Features/History/HistoryController.coffee b/services/web/app/coffee/Features/History/HistoryController.coffee index b8f3f4dcfb..f8f1578bd5 100644 --- a/services/web/app/coffee/Features/History/HistoryController.coffee +++ b/services/web/app/coffee/Features/History/HistoryController.coffee @@ -46,14 +46,9 @@ module.exports = HistoryController = "X-User-Id": user_id }, (error, response, body) -> return next(error) if error? - if 200 <= res.statusCode < 300 - HistoryManager.injectUserDetails body, (error, data) -> - return next(error) if error? - res.json data - else - error = new Error("history api responded with non-success code: #{res.statusCode}") - logger.error err: error, user_id: user_id, "error proxying request to history api" - next(error) + HistoryManager.injectUserDetails body, (error, data) -> + return next(error) if error? + res.json data buildHistoryServiceUrl: (useProjectHistory) -> # choose a history service, either document-level (trackchanges)