rename queueResyncDocContents -> queueResyncDocContent

This commit is contained in:
Hayden Faulds 2018-03-09 12:21:37 +00:00
parent 64d1fe13bc
commit 088ab6e7ba
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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