mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
rename queueResyncDocContents -> queueResyncDocContent
This commit is contained in:
parent
64d1fe13bc
commit
088ab6e7ba
2 changed files with 4 additions and 4 deletions
|
@ -186,9 +186,9 @@ module.exports = DocumentManager =
|
|||
if !lines? or !version?
|
||||
PersistenceManager.getDoc project_id, doc_id, (error, lines, version, ranges, pathname) ->
|
||||
return callback(error) if error?
|
||||
RedisManager.queueResyncDocContents project_id, doc_id, lines, version, pathname, callback
|
||||
RedisManager.queueResyncDocContent project_id, doc_id, lines, version, pathname, callback
|
||||
else
|
||||
RedisManager.queueResyncDocContents project_id, doc_id, lines, version, pathname, callback
|
||||
RedisManager.queueResyncDocContent project_id, doc_id, lines, version, pathname, callback
|
||||
|
||||
getDocWithLock: (project_id, doc_id, callback = (error, lines, version) ->) ->
|
||||
UpdateManager = require "./UpdateManager"
|
||||
|
|
|
@ -330,10 +330,10 @@ module.exports = RedisManager =
|
|||
jsonUpdate = JSON.stringify update
|
||||
rclient.rpush projectHistoryKeys.projectHistoryOps({project_id}), jsonUpdate, callback
|
||||
|
||||
queueResyncDocContents: (project_id, doc_id, lines, version, pathname, callback) ->
|
||||
queueResyncDocContent: (project_id, doc_id, lines, version, pathname, callback) ->
|
||||
logger.log {project_id, doc_id, pathname}, "queue doc content resync"
|
||||
update =
|
||||
resyncDocContents:
|
||||
resyncDocContent:
|
||||
content: lines.join("\n"),
|
||||
version: version
|
||||
path: pathname
|
||||
|
|
Loading…
Reference in a new issue