From f34ce5b12b3870c67256f0d47b6e95dd3f735c6b Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 8 May 2018 11:19:21 +0100 Subject: [PATCH] rename _updateProjectStructure to _updateProjectStructureWithDeletedEntity --- .../coffee/Features/Project/ProjectEntityUpdateHandler.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/Project/ProjectEntityUpdateHandler.coffee b/services/web/app/coffee/Features/Project/ProjectEntityUpdateHandler.coffee index faa82e6f37..6853bb1715 100644 --- a/services/web/app/coffee/Features/Project/ProjectEntityUpdateHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectEntityUpdateHandler.coffee @@ -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} ]