You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2018/04/02 17:30:14 UTC
[incubator-openwhisk-package-cloudant] branch master updated:
query_params should not be required when using filter (#166)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-cloudant.git
The following commit(s) were added to refs/heads/master by this push:
new 30047f4 query_params should not be required when using filter (#166)
30047f4 is described below
commit 30047f41e1b4c84defe36baa73c035877c07910e
Author: Jason Peterson <ja...@us.ibm.com>
AuthorDate: Mon Apr 2 13:30:09 2018 -0400
query_params should not be required when using filter (#166)
---
.travis.yml | 1 +
actions/changesWebAction.js | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 7f977bb..ce79a21 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,7 @@ env:
- secure: "c2PoumiBu9Q0ko31/azS8aml2hjv9pPIURxnNfKFWnru0UxXW/F06XAuzyfiBUSXcWgZ+mV2aOj+Fyjr67d1GCtcb8w3lVbaubdlDp+HQQ4iIz0YcTR6FZgLT3iQNVYqZEfmu4/98aeQozmLHbzXHbrw/Dv2PgGTRTrcZuMIb758SI3rFeA87IN4FtotvPXEqQa5w3GGNiFEWOrswKE2bVpeW8IKmdnlX+QCbBBHUoNcHlz93SPBfmbz2IBMV0eWtqw+zAAH6iynIetoxPnBz+mNdyEKRHNGmj3hsJsyN7KPI0ZhVLbxO6qAeaXdaH6Lq/HwFom8eRg2jY5utyeyovvx/EvhuPQHTxQqZu6giaJPkRYVAfr4hLCVjObgpCa1/jq6nYDPTcY74sA2iX1p2UYkjTo46WBr9Fq82BTrVgT2vp8OTvFXh+oiE9Z8Li0NCgSu0Aps8yUwmpZROTc63yjHslYdN [...]
before_install:
+ - npm conf set strict-ssl false
- ./tools/travis/setup.sh
install: true
diff --git a/actions/changesWebAction.js b/actions/changesWebAction.js
index f69e286..b72e35d 100644
--- a/actions/changesWebAction.js
+++ b/actions/changesWebAction.js
@@ -47,8 +47,8 @@ function main(params) {
return sendError(400, 'The query_params parameter cannot be parsed. Ensure it is valid JSON.');
}
}
- if (typeof query_params !== 'object') {
- return sendError(400, 'The query_params parameter is not valid JSON');
+ if (query_params && typeof query_params !== 'object') {
+ return sendError(400, 'The query_params parameter is not a valid JSON Object');
}
}
else if (params.query_params) {
@@ -170,7 +170,7 @@ function main(params) {
}
}
if (typeof query_params !== 'object') {
- reject(sendError(400, 'The query_params parameter is not valid JSON'));
+ reject(sendError(400, 'The query_params parameter is not a valid JSON Object'));
}
updatedParams.query_params = query_params;
} else {
--
To stop receiving notification emails like this one, please contact
csantanapr@apache.org.