feat : add customer no in validate API
This commit is contained in:
@@ -8,6 +8,9 @@ const emandateData = async (req, res) => {
|
|||||||
return res.status(404).json({ error: 'DATA NOT FOUND FROM CLIENT' })
|
return res.status(404).json({ error: 'DATA NOT FOUND FROM CLIENT' })
|
||||||
try {
|
try {
|
||||||
const reqData = { data, mandateRequest, mandateType };
|
const reqData = { data, mandateRequest, mandateType };
|
||||||
|
if (customer_no) {
|
||||||
|
reqData.customer_no = customer_no;
|
||||||
|
}
|
||||||
const response = await axios.post('http://192.168.1.166:9992/kccb/validation', reqData,
|
const response = await axios.post('http://192.168.1.166:9992/kccb/validation', reqData,
|
||||||
{
|
{
|
||||||
headers: { 'Content-Type': 'application/json', },
|
headers: { 'Content-Type': 'application/json', },
|
||||||
|
|||||||
Reference in New Issue
Block a user