mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added comment about using a project entity iterator
This commit is contained in:
parent
f34ce5b12b
commit
2bb2d9615f
1 changed files with 4 additions and 0 deletions
|
@ -416,6 +416,10 @@ module.exports = ProjectEntityUpdateHandler = self =
|
||||||
else
|
else
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
|
# Note: the _cleanUpEntity code and _updateProjectStructureWithDeletedEntity
|
||||||
|
# methods both need to recursively iterate over the entities in folder.
|
||||||
|
# These are currently using separate implementations of the recursion. In
|
||||||
|
# future, these could be simplified using a common project entity iterator.
|
||||||
_updateProjectStructureWithDeletedEntity: (project, entity, entityType, entityPath, userId, callback = (error) ->) ->
|
_updateProjectStructureWithDeletedEntity: (project, entity, entityType, entityPath, userId, callback = (error) ->) ->
|
||||||
# compute the changes to the project structure
|
# compute the changes to the project structure
|
||||||
if(entityType.indexOf("file") != -1)
|
if(entityType.indexOf("file") != -1)
|
||||||
|
|
Loading…
Reference in a new issue