diff --git a/API_TRANSITION_GUIDE.md b/API_TRANSITION_GUIDE.md index 4370a732..df31c985 100644 --- a/API_TRANSITION_GUIDE.md +++ b/API_TRANSITION_GUIDE.md @@ -60,7 +60,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: 'post', url: '...', data: message.body, @@ -82,7 +82,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: "post", url: "...", data: message.body, diff --git a/README.md b/README.md index b40b8de3..d8792814 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: "post", url: "...", data: message.body,