added beneficiary payment middleware to neft, rtgs, imps and transfer routes
This commit is contained in:
@@ -4,9 +4,17 @@ const { logger } = require('../util/logger');
|
||||
const neftValidator = require('../validators/neft.validator.js');
|
||||
const paymentSecretValidator = require('../validators/payment.secret.validator');
|
||||
const { checkLimit } = require('../middlewares/limitCheck.middleware');
|
||||
const {
|
||||
checkBeneficiaryCooldown,
|
||||
} = require('../middlewares/cooldown.middleware');
|
||||
|
||||
const router = express.Router();
|
||||
router.use(neftValidator, paymentSecretValidator, checkLimit);
|
||||
router.use(
|
||||
neftValidator,
|
||||
paymentSecretValidator,
|
||||
checkLimit,
|
||||
checkBeneficiaryCooldown
|
||||
);
|
||||
|
||||
const neftRoute = async (req, res) => {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user