From 086a0829e3456aa2cf844d547dfb5df16112d4d8 Mon Sep 17 00:00:00 2001 From: Hayden Faulds Date: Tue, 7 Nov 2017 10:06:12 +0000 Subject: [PATCH] use self rather than ProtectEntityHandler --- .../app/coffee/Features/Project/ProjectEntityHandler.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee index 30f3789778..abd5c7f3d8 100644 --- a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee @@ -368,11 +368,11 @@ module.exports = ProjectEntityHandler = return callback(err) if err? self._checkValidMove project, entityType, entityPath, destFolderId, (error) -> return callback(error) if error? - ProjectEntityHandler.getAllEntitiesFromProject project, (error, oldDocs, oldFiles) => + self.getAllEntitiesFromProject project, (error, oldDocs, oldFiles) => return callback(error) if error? self._removeElementFromMongoArray Project, project_id, entityPath.mongo, (err, newProject)-> return callback(err) if err? - ProjectEntityHandler._putElement newProject, destFolderId, entity, entityType, (err, result, newProject)-> + self._putElement newProject, destFolderId, entity, entityType, (err, result, newProject)-> return callback(err) if err? opts = project_id: project_id @@ -381,7 +381,7 @@ module.exports = ProjectEntityHandler = endPath: result.path.fileSystem, rev: entity.rev tpdsUpdateSender.moveEntity opts - ProjectEntityHandler.getAllEntitiesFromProject newProject, (error, newDocs, newFiles + self.getAllEntitiesFromProject newProject, (error, newDocs, newFiles ) => return callback(error) if error? documentUpdaterHandler = require('../../Features/DocumentUpdater/DocumentUpdaterHandler')