added remarks in normal branch transfer

This commit is contained in:
2025-09-18 11:03:19 +05:30
parent b285c94aa2
commit 3d3a8f629c

View File

@@ -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.') {