Skip to content

Commit

Permalink
fix request body
Browse files Browse the repository at this point in the history
  • Loading branch information
nilesh93 committed Aug 4, 2020
1 parent 8d460ae commit fe0bfc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ try {

let WebhhookURL;
if (containerID && containerID != "") {
body.containerID = containerID
body.container_id = containerID
WebhhookURL = `${domain}/rudder/webhook/v1/container`
}
if (imageRegistryID && imageRegistryID != "") {
body.imageRegistryID = imageRegistryID
body.image_registry_id = imageRegistryID
WebhhookURL = `${domain}/rudder/webhook/v1/image-registry`
}
const headers = {
Expand All @@ -41,7 +41,7 @@ try {
}

console.log("sending request to " + WebhhookURL)
console.log(body)


axios.post(WebhhookURL, body, {
headers: headers
Expand Down

0 comments on commit fe0bfc7

Please sign in to comment.