mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
change filter to exclude in getProjectDocs
This commit is contained in:
parent
54e02cd895
commit
80be5adc0d
1 changed files with 4 additions and 4 deletions
|
@ -39,12 +39,12 @@ module.exports = HttpController =
|
|||
|
||||
getProjectDocs: (req, res, next = (error) ->) ->
|
||||
project_id = req.params.project_id
|
||||
# filter is string of existing docs "id:version,id:version,..."
|
||||
filterItems = req.query?.filter?.split(',') or []
|
||||
logger.log project_id: project_id, filter: filterItems, "getting docs via http"
|
||||
# exclude is string of existing docs "id:version,id:version,..."
|
||||
excludeItems = req.query?.exclude?.split(',') or []
|
||||
logger.log project_id: project_id, exclude: excludeItems, "getting docs via http"
|
||||
timer = new Metrics.Timer("http.getAllDocs")
|
||||
excludeVersions = {}
|
||||
for item in filterItems
|
||||
for item in excludeItems
|
||||
[id,version] = item?.split(':')
|
||||
excludeVersions[id] = version
|
||||
logger.log {project_id: project_id, excludeVersions: excludeVersions}, "excluding versions"
|
||||
|
|
Loading…
Reference in a new issue