Guest User

Untitled

a guest
May 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. // ...
  2.  
  3. const isDuplicateRequest = (requestBody) => {
  4. return isRequestIdInDatabase(requestBody.uniqueRequestId);
  5. };
  6.  
  7. // ...
  8.  
  9. app.use((req, res) => {
  10. if (isDuplicateRequest(req.body)) {
  11. res.end();
  12. }
  13. });
Add Comment
Please, Sign In to add comment