Skip to content

Commit

Permalink
Response status 202 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Mar 13, 2024
1 parent 16ab387 commit e078bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ app.post("/api/webhooks/notifications", async (req, res) => {
}
}

res.send('[accepted]');
// acknowledge event has been consumed
res.status(202).send(); // Send a 202 response with an empty body

});

Expand Down

0 comments on commit e078bd8

Please sign in to comment.