Skip to content

Commit

Permalink
refactor: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
akastercomcom committed Nov 3, 2023
1 parent 2b8e7e3 commit 3dec80e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/middlewares/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ export default class Middleware {
* @returns Null if if request is duplicated.
*/
triggerFilter = (req: Request, res: Response) => {
if (req.body.fid === undefined){
res.send("not from trigger");
return;
}
if (req.body.transaction === undefined){
if (req.body.fid || req.body.transaction){
res.send("not from trigger");
return;
}
Expand Down

0 comments on commit 3dec80e

Please sign in to comment.