fix - groupName fixed

This commit is contained in:
2025-09-20 20:46:21 +05:30
parent f33dfb06c3
commit 54cfb3508d
2 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ router.post(
responseType: "arraybuffer", responseType: "arraybuffer",
}); });
const groupTitle = "Insurance Claim"; const groupTitle = "Claims";
const groupTitleKey = "INSURANCE_CLAIM"; const groupTitleKey = "INSURANCE_CLAIM";
// ✅ Find or create PDF group for this claim // ✅ Find or create PDF group for this claim

View File

@@ -60,7 +60,7 @@ router.post(
if (result.pdf_path && result.pdf_path.endsWith(".pdf")) { if (result.pdf_path && result.pdf_path.endsWith(".pdf")) {
const pdfBuffer = await fs.readFile(result.pdf_path); const pdfBuffer = await fs.readFile(result.pdf_path);
const groupTitle = "Eligibility Status PDFs"; const groupTitle = "Eligibility Status";
const groupTitleKey = "ELIGIBILITY_STATUS"; const groupTitleKey = "ELIGIBILITY_STATUS";
let group = await storage.findPdfGroupByPatientTitleKey( let group = await storage.findPdfGroupByPatientTitleKey(
@@ -216,7 +216,7 @@ router.post(
} }
if (pdfBuffer && generatedPdfPath) { if (pdfBuffer && generatedPdfPath) {
const groupTitle = "Insurance Status PDFs"; const groupTitle = "Claim Status";
const groupTitleKey = "CLAIM_STATUS"; const groupTitleKey = "CLAIM_STATUS";
let group = await storage.findPdfGroupByPatientTitleKey( let group = await storage.findPdfGroupByPatientTitleKey(