change key to maxEntitiesPerProject

This commit is contained in:
Henry Oswald 2016-03-09 15:53:03 +00:00
parent 5be05a35d8
commit bf8f9f6d41
2 changed files with 2 additions and 2 deletions

View file

@ -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)=>

View file

@ -130,7 +130,7 @@ module.exports =
httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
maxFilesPerProject: 200
maxEntitiesPerProject: 2000
# Security
# --------