From 3dec80e573b70a07744d9751bc099004b1ab6112 Mon Sep 17 00:00:00 2001 From: akaster99 Date: Fri, 3 Nov 2023 15:33:57 +0900 Subject: [PATCH] refactor: merge --- src/middlewares/middleware.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/middlewares/middleware.ts b/src/middlewares/middleware.ts index 2a55ff0..e619353 100644 --- a/src/middlewares/middleware.ts +++ b/src/middlewares/middleware.ts @@ -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; }