mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
rename queueResyncDocContents -> queueResyncDocContent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user