mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
added comment about using a project entity iterator
This commit is contained in:
@@ -416,6 +416,10 @@ module.exports = ProjectEntityUpdateHandler = self =
|
||||
else
|
||||
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) ->) ->
|
||||
# compute the changes to the project structure
|
||||
if(entityType.indexOf("file") != -1)
|
||||
|
||||
Reference in New Issue
Block a user