mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
change key to maxEntitiesPerProject
This commit is contained in:
parent
5be05a35d8
commit
bf8f9f6d41
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
# --------
|
||||
|
|
Loading…
Reference in a new issue