removed unnecessary async keyword from validators
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const neftValidator = async (req, res, next) => {
|
const neftValidator = (req, res, next) => {
|
||||||
const {
|
const {
|
||||||
fromAccount,
|
fromAccount,
|
||||||
toAccount,
|
toAccount,
|
||||||
|
@@ -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'];
|
||||||
|
Reference in New Issue
Block a user