removed unnecessary async keyword from validators

This commit is contained in:
asif
2025-08-09 21:43:59 +05:30
parent 1bd618b4fd
commit dbdc1c7829
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
const neftValidator = async (req, res, next) => { const neftValidator = (req, res, next) => {
const { const {
fromAccount, fromAccount,
toAccount, toAccount,

View File

@@ -1,4 +1,4 @@
const transferValidator = async (req, res, next) => { const transferValidator = (req, res, next) => {
const { fromAccount, toAccount, toAccountType, amount } = req.body; const { fromAccount, toAccount, toAccountType, amount } = req.body;
const accountTypes = ['SB', 'LN', 'Savings', 'Current']; const accountTypes = ['SB', 'LN', 'Savings', 'Current'];