فهرست منبع

use empty object for ranges if it doesn't exist

nate stemen 6 سال پیش
والد
کامیت
ffd8d0745d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/document-updater/app/coffee/DocumentManager.coffee

+ 1 - 1
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