added remarks in normal branch transfer
This commit is contained in:
@@ -8,14 +8,15 @@ const router = express.Router();
|
||||
router.use(passwordValidator, transferValidator);
|
||||
|
||||
const transferRoute = async (req, res) => {
|
||||
const { fromAccount, toAccount, toAccountType, amount } = req.body;
|
||||
const { fromAccount, toAccount, toAccountType, amount, remarks } = req.body;
|
||||
try {
|
||||
const result = await transferController.transfer(
|
||||
fromAccount,
|
||||
toAccount,
|
||||
toAccountType,
|
||||
amount,
|
||||
req.user
|
||||
req.user,
|
||||
remarks
|
||||
);
|
||||
|
||||
if (result.status === 'O.K.') {
|
||||
|
||||
Reference in New Issue
Block a user