From bf8f9f6d41462f31a98d191b4b2b5f9eb3b78c21 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 9 Mar 2016 15:53:03 +0000 Subject: [PATCH] change key to maxEntitiesPerProject --- .../web/app/coffee/Features/Project/ProjectEntityHandler.coffee | 2 +- services/web/config/settings.defaults.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee index 6826eccd40..c7346f6776 100644 --- a/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectEntityHandler.coffee @@ -503,7 +503,7 @@ module.exports = ProjectEntityHandler = if !folder_id? folder_id = project.rootFolder[0]._id ProjectEntityHandler._countElements project, (err, count)-> - if count > settings.maxFilesPerProject + if count > settings.maxEntitiesPerProject logger.warn project_id:project._id, "project too big, stopping insertions" return callback("project_has_to_many_files") projectLocator.findElement {project:project, element_id:folder_id, type:"folders"}, (err, folder, path)=> diff --git a/services/web/config/settings.defaults.coffee b/services/web/config/settings.defaults.coffee index 6c9bdf1b55..3f73439cd0 100644 --- a/services/web/config/settings.defaults.coffee +++ b/services/web/config/settings.defaults.coffee @@ -130,7 +130,7 @@ module.exports = httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000' - maxFilesPerProject: 200 + maxEntitiesPerProject: 2000 # Security # --------