mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
rename _updateProjectStructure to _updateProjectStructureWithDeletedEntity
This commit is contained in:
parent
1278e2da45
commit
f34ce5b12b
1 changed files with 2 additions and 2 deletions
|
@ -405,7 +405,7 @@ module.exports = ProjectEntityUpdateHandler = self =
|
|||
DocumentUpdaterHandler.resyncProjectHistory project_id, projectHistoryId, docs, files, callback
|
||||
|
||||
_cleanUpEntity: (project, entity, entityType, path, userId, callback = (error) ->) ->
|
||||
self._updateProjectStructure project, entity, entityType, path, userId, (error) ->
|
||||
self._updateProjectStructureWithDeletedEntity project, entity, entityType, path, userId, (error) ->
|
||||
return callback(error) if error?
|
||||
if(entityType.indexOf("file") != -1)
|
||||
self._cleanUpFile project, entity, path, userId, callback
|
||||
|
@ -416,7 +416,7 @@ module.exports = ProjectEntityUpdateHandler = self =
|
|||
else
|
||||
callback()
|
||||
|
||||
_updateProjectStructure: (project, entity, entityType, entityPath, userId, callback = (error) ->) ->
|
||||
_updateProjectStructureWithDeletedEntity: (project, entity, entityType, entityPath, userId, callback = (error) ->) ->
|
||||
# compute the changes to the project structure
|
||||
if(entityType.indexOf("file") != -1)
|
||||
changes = oldFiles: [ {file: entity, path: entityPath} ]
|
||||
|
|
Loading…
Reference in a new issue