mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
change key to maxEntitiesPerProject
This commit is contained in:
@@ -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)=>
|
||||
|
||||
@@ -130,7 +130,7 @@ module.exports =
|
||||
httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
|
||||
|
||||
|
||||
maxFilesPerProject: 200
|
||||
maxEntitiesPerProject: 2000
|
||||
|
||||
# Security
|
||||
# --------
|
||||
|
||||
Reference in New Issue
Block a user