Skip to content

Commit

Permalink
feat: utilize echo-server for both build and job results
Browse files Browse the repository at this point in the history
  • Loading branch information
williams-jack committed Jul 20, 2024
1 parent 2e92da6 commit 0e7a99f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worker/images/testing/echo-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ app.get("/job-output/:key", (req, res) => {
});

app.post("/job-output", (req, res) => {
const { key, output } = req.body;
const { key, build_key } = req.body;
console.log(req.body);
if (key) {
responses[key] = req.body;
if (key || build_key) {
responses[key || build_key] = req.body;
return res.sendStatus(200);
}
res.sendStatus(400);
Expand Down

0 comments on commit 0e7a99f

Please sign in to comment.