From 80be5adc0d96498a9a7e6040b38dd0f6ca6fddd2 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 3 Aug 2017 14:42:08 +0100 Subject: [PATCH] change filter to exclude in getProjectDocs --- .../document-updater/app/coffee/HttpController.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/document-updater/app/coffee/HttpController.coffee b/services/document-updater/app/coffee/HttpController.coffee index 4dad5b7333..20eaa2c6f3 100644 --- a/services/document-updater/app/coffee/HttpController.coffee +++ b/services/document-updater/app/coffee/HttpController.coffee @@ -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"