diff --git a/components/myportal/awaitingsubmissionfromblob.js b/components/myportal/awaitingsubmissionfromblob.js index 1b73320b..f8d577c3 100644 --- a/components/myportal/awaitingsubmissionfromblob.js +++ b/components/myportal/awaitingsubmissionfromblob.js @@ -77,49 +77,57 @@ const AwaitingSubmissionFromBlob = (props) => {
diff --git a/pages/api/file/createappealcompletemessage_api.js b/pages/api/file/createappealcompletemessage_api.js index 9818ce15..45591911 100644 --- a/pages/api/file/createappealcompletemessage_api.js +++ b/pages/api/file/createappealcompletemessage_api.js @@ -1,7 +1,9 @@ import { hashAPIPath } from "../../../actions"; import { - getBlobs, createCaseCompleteMessage, + getProgressBlobs, + downloadProgressFile, + createBlob, } from "../../../actions/azurestorage"; import nextConnect from "next-connect"; @@ -25,8 +27,20 @@ ApiProxy.get(async (req, res) => { "&tempcaseref=" + tempCaseRef; + const blobProgress = await getProgressBlobs( + containerName, + tempCaseRef + ).then((data) => { + return downloadProgressFile(containerName, data.path, tempCaseRef); + }); + + Object.assign(blobProgress, { + "appealComplete": true, + }); + //http: if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) { await createCaseCompleteMessage(containerName, tempCaseRef).then((data) => { + createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef); return res.status(200).json(data); }); // } else { diff --git a/tmp/~$23-03-16 - Main LPA Questionnaire template v2.docx b/tmp/~$23-03-16 - Main LPA Questionnaire template v2.docx deleted file mode 100644 index 1215360c..00000000 Binary files a/tmp/~$23-03-16 - Main LPA Questionnaire template v2.docx and /dev/null differ