From a4926d8833edc2de40ac1329479233501c537bd5 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Fri, 3 Feb 2023 12:32:54 +0700 Subject: [PATCH] Add back requestIp middleware --- backend/src/app.ts | 2 +- backend/src/controllers/v1/membershipOrgController.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/app.ts b/backend/src/app.ts index 066da16d4c..79561d00c0 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -73,7 +73,7 @@ app.use( }) ); -// app.use(requestIp.mw()) +app.use(requestIp.mw()) if (NODE_ENV === 'production') { // enable app-wide rate-limiting + helmet security diff --git a/backend/src/controllers/v1/membershipOrgController.ts b/backend/src/controllers/v1/membershipOrgController.ts index f3703b8895..0040b583e6 100644 --- a/backend/src/controllers/v1/membershipOrgController.ts +++ b/backend/src/controllers/v1/membershipOrgController.ts @@ -77,8 +77,6 @@ export const changeMembershipOrgRole = async (req: Request, res: Response) => { // change role for (target) organization membership with id // [membershipOrgId] - // TODO - let membershipToChangeRole; // try { // } catch (err) {