mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
use empty object for ranges if it doesn't exist
This commit is contained in:
parent
dec18e0773
commit
ffd8d0745d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = DocumentManager =
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
RedisManager.setHistoryType doc_id, projectHistoryType, (error) ->
|
RedisManager.setHistoryType doc_id, projectHistoryType, (error) ->
|
||||||
return callback(error) if 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
|
else
|
||||||
callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true
|
callback null, lines, version, ranges, pathname, projectHistoryId, unflushedTime, true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue