Beneficiary Limit Check
This commit is contained in:
@@ -13,7 +13,7 @@ async function checkBeneficiaryLimit(req, res, next) {
|
|||||||
}
|
}
|
||||||
const beneficiaryLimit = beneficiary.transaction_limit;
|
const beneficiaryLimit = beneficiary.transaction_limit;
|
||||||
|
|
||||||
if (!beneficiary.transactionLimit) {
|
if (!beneficiaryLimit) {
|
||||||
logger.info('NO LIMIT SET FOR BENEFICIARY. ALLOWING TRANSACTIONS');
|
logger.info('NO LIMIT SET FOR BENEFICIARY. ALLOWING TRANSACTIONS');
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user