From ffd8d0745db87ec6454fee79fee46e74dae226ca Mon Sep 17 00:00:00 2001 From: nate stemen Date: Fri, 6 Mar 2020 13:49:30 -0500 Subject: [PATCH] use empty object for ranges if it doesn't exist --- services/document-updater/app/coffee/DocumentManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/DocumentManager.coffee b/services/document-updater/app/coffee/DocumentManager.coffee index 59db98e97f..ad0cb0eecb 100644 --- a/services/document-updater/app/coffee/DocumentManager.coffee +++ b/services/document-updater/app/coffee/DocumentManager.coffee @@ -30,7 +30,7 @@ module.exports = DocumentManager = return callback(error) if error? RedisManager.setHistoryType doc_id, projectHistoryType, (error) -> return callback(error) if error? - callback null, lines, version, ranges, pathname, projectHistoryId, null, false + callback null, lines, version, ranges || {}, pathname, projectHistoryId, null, false else callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true