implemented quick pay within bank

This commit is contained in:
2025-06-25 23:46:17 +05:30
parent d813784305
commit e3bd1657c0
14 changed files with 262 additions and 13 deletions

View File

@@ -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)
);