diff --git a/.eslintrc.json b/.eslintrc.json index eb552f5..29aa4d0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -22,6 +22,7 @@ "eol-last": "off", "no-console": "error", "no-alert": "error", + "no-use-before-define": "off", "object-curly-newline": "off", "import/default": "off", "import/no-cycle": "off", diff --git a/package.json b/package.json index 6e5eb51..c8a748a 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ }, "devDependencies": { "@types/bluebird": "^3.5.37", + "@types/body-parser": "^1.19.3", "@types/cors": "^2.8.12", "@types/express": "^4.17.14", "@types/helmet": "^4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f0edf1..ac8c113 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,6 +61,9 @@ devDependencies: '@types/bluebird': specifier: ^3.5.37 version: 3.5.39 + '@types/body-parser': + specifier: ^1.19.3 + version: 1.19.3 '@types/cors': specifier: ^2.8.12 version: 2.8.14 diff --git a/src/middlewares/isBuck.ts b/src/middlewares/isBuck.ts index 281093b..b339af9 100644 --- a/src/middlewares/isBuck.ts +++ b/src/middlewares/isBuck.ts @@ -99,7 +99,7 @@ export default async ( ) return notModified(res); return next(); - } else if (payload.pointOfSaleId === process.env.ENTRY_SALE_POINT_ID) { + } if (payload.pointOfSaleId === process.env.ENTRY_SALE_POINT_ID) { return success(res, {}); } }