diff --git a/pages/api/file/createappealcompletemessage_api.js b/pages/api/file/createappealcompletemessage_api.js index 45591911..67186452 100644 --- a/pages/api/file/createappealcompletemessage_api.js +++ b/pages/api/file/createappealcompletemessage_api.js @@ -27,25 +27,28 @@ ApiProxy.get(async (req, res) => { "&tempcaseref=" + tempCaseRef; - const blobProgress = await getProgressBlobs( - containerName, - tempCaseRef - ).then((data) => { - return downloadProgressFile(containerName, data.path, tempCaseRef); - }); + // const blobProgress = await getProgressBlobs( + // containerName, + // tempCaseRef + // ).then((data) => { + // return downloadProgressFile(containerName, data.path, tempCaseRef); + // }); - Object.assign(blobProgress, { - "appealComplete": true, - }); + // 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 { - // return res.status(400).json(); - // } + await createCaseCompleteMessage(containerName, tempCaseRef) + .then((data) => { + //createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef); + return res.status(200).json(data); + }) + .catch((error) => { + //console.log(error); + + return res.status(400).json(error); + }); }); export const config = {