I am working on a project where am converting the pdf to png with some async functions. it is working fine for document at a time, but when it comes to bulk documents the map iteration moving to next element from the array before completing a async function (which contains two more async function inside it). below is my code.
await Promise.all(batchInputFiles.map(async item => {
const fileData: any = await uploadService.PdfToPng(item.pdfPath, 'batch', item.pageCount, item.parentPath);
}));