feat: added beneficiary wise transaction limit
This commit is contained in:
@@ -4,6 +4,9 @@ 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 {
|
||||
checkBeneficiaryLimit,
|
||||
} = require('../middlewares/beneficiaryLimit.middleware');
|
||||
const {
|
||||
checkBeneficiaryCooldown,
|
||||
} = require('../middlewares/cooldown.middleware');
|
||||
@@ -13,7 +16,8 @@ router.use(
|
||||
neftValidator,
|
||||
paymentSecretValidator,
|
||||
checkLimit,
|
||||
checkBeneficiaryCooldown
|
||||
checkBeneficiaryCooldown,
|
||||
checkBeneficiaryLimit
|
||||
);
|
||||
|
||||
const neftRoute = async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user