Skip to content

Commit

Permalink
Change response code from 404 to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Oct 15, 2018
1 parent 9dbcae7 commit cbede1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sdm/configuration/configureLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async function configureWebEndpoints(configuration: LocalSoftwareDeliveryMachine
app.post("/atomist/link-image/teams/:team", async (req, res) => {
const event = automationClientInstance().automations.automations.events.find(e => e.name === "FindArtifactOnImageLinked");
if (!event) {
return res.status(404).send(`Event 'FindArtifactOnImageLinked' not found`);
return res.status(200).send(`Event 'FindArtifactOnImageLinked' not found`);
}

const payload = req.body;
Expand Down Expand Up @@ -235,7 +235,7 @@ async function configureWebEndpoints(configuration: LocalSoftwareDeliveryMachine
app.post("/atomist/build/teams/:team", async (req, res) => {
const event = automationClientInstance().automations.automations.events.find(e => e.name === "InvokeListenersOnBuildComplete");
if (!event) {
return res.status(404).send(`Event 'InvokeListenersOnBuildComplete' not found`);
return res.status(200).send(`Event 'InvokeListenersOnBuildComplete' not found`);
}

const body = req.body;
Expand Down

0 comments on commit cbede1c

Please sign in to comment.