update appeal pdf file name

This commit is contained in:
2024-05-16 12:40:28 +01:00
parent 5a8e1e8d5b
commit 20a15d424f
2 changed files with 19 additions and 3 deletions
+9 -1
View File
@@ -319,8 +319,16 @@ export const createAppealPDFBlob = async (
const content = formContent;
const repDate = new Date();
let day = repDate.getDate();
let month = repDate.getMonth() + 1;
let year = repDate.getFullYear();
const pdfFileName = year + "-" + month + "-" + day + "_-_Appeal_Form";
//console.log(content);
const blobName = caseID + "/files/" + caseID + ".pdf";
const blobName = caseID + "/files/" + pdfFileName + ".pdf";
console.log("blobName:", blobName);
const blockBlobClient = containerClient.getBlockBlobClient(blobName);