claim pdf done

This commit is contained in:
2025-07-02 19:21:48 +05:30
parent 0b46fb0c99
commit 54f80db08a
2 changed files with 0 additions and 19 deletions

View File

@@ -153,14 +153,6 @@ router.post(
responseType: "arraybuffer",
});
// Temp savving the pdf incase, creatClaimPdf failed:
const tempDir = path.join(__dirname, "..", "..", "temp");
if (!fs.existsSync(tempDir)) {
fs.mkdirSync(tempDir, { recursive: true });
}
const filePath = path.join(tempDir, filename);
fs.writeFileSync(filePath, pdfResponse.data);
// saving at postgres db
await storage.createClaimPdf(
parsedPatientId,