implemented quick pay within bank
This commit is contained in:
@@ -8,7 +8,6 @@ async function getDetails(customerNo) {
|
||||
{ params: { stcustno: customerNo } }
|
||||
);
|
||||
const details = response.data;
|
||||
logger.info(details, 'response from cbs');
|
||||
const processedDetails = details.map((acc) => ({
|
||||
...acc,
|
||||
activeAccounts: details.length,
|
||||
@@ -16,6 +15,7 @@ async function getDetails(customerNo) {
|
||||
}));
|
||||
return processedDetails;
|
||||
} catch (error) {
|
||||
logger.error('while fetching customer details', error);
|
||||
throw new Error(
|
||||
'API call failed: ' + (error.response?.data?.message || error.message)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user