This is an automated email from the ASF dual-hosted git repository.

berstler 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 b025246  Return Expected JSON Response from Web Action (#116)
b025246 is described below

commit b025246bda187a64423ce4debdcc107aa8b11041
Author: James Dubee <[email protected]>
AuthorDate: Thu Jul 13 14:49:32 2017 -0400

    Return Expected JSON Response from Web Action (#116)
---
 actions/changesWebAction.js | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/actions/changesWebAction.js b/actions/changesWebAction.js
index b923a5d..c6c445e 100644
--- a/actions/changesWebAction.js
+++ b/actions/changesWebAction.js
@@ -79,7 +79,13 @@ function main(params) {
             .then(() => {
                  return createTrigger(db, triggerID, newTrigger);
             })
-            .then(resolve)
+            .then(() => {
+                 resolve({
+                     statusCode: 200,
+                     headers: {'Content-Type': 'application/json'},
+                     body: new Buffer(JSON.stringify({'status': 
'success'})).toString('base64'),
+                 });
+            })
             .catch(err => {
                 reject(err);
             });
@@ -96,7 +102,13 @@ function main(params) {
             .then(() => {
                 return deleteTrigger(db, triggerID, 0);
             })
-            .then(resolve)
+            .then(() => {
+                resolve({
+                    statusCode: 200,
+                    headers: {'Content-Type': 'application/json'},
+                    body: new Buffer(JSON.stringify({'status': 
'success'})).toString('base64'),
+                });
+            })
             .catch(err => {
                 reject(err);
             });

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to