diff --git a/components/newappeal/buildchecksection.js b/components/newappeal/buildchecksection.js index 432cfac2..b7eb1245 100644 --- a/components/newappeal/buildchecksection.js +++ b/components/newappeal/buildchecksection.js @@ -120,6 +120,7 @@ let BuildCheckSection = (props) => { }; const finaliseAppeal = async () => { + setFinaliseAppealProcess(true); console.log("finalising appeal:"); await generateAppealPDF( pdfObj, @@ -136,12 +137,8 @@ let BuildCheckSection = (props) => { props.appealType.caseReference.ticketnumber ); }) - .then((data) => { - setFinaliseAppealProcess(true); - return data; - }) - .then((data) => { - console.log("have sent comple message :", data); + .then(() => { + console.log("have sent complete message :"); setCurrentSection(9999); }); }; diff --git a/components/newappeal/buildprogress.js b/components/newappeal/buildprogress.js index 14bde8d3..2335a89b 100644 --- a/components/newappeal/buildprogress.js +++ b/components/newappeal/buildprogress.js @@ -131,56 +131,6 @@ const BuildProgress = (props) => { ))} - - {/*
    - -
*/} {Object.keys(documentListObj).length > 0 && ( diff --git a/pages/api/file/createappealcompletemessage_api.js b/pages/api/file/createappealcompletemessage_api.js index eb28303f..16b9fde8 100644 --- a/pages/api/file/createappealcompletemessage_api.js +++ b/pages/api/file/createappealcompletemessage_api.js @@ -43,7 +43,9 @@ ApiProxy.get(async (req, res) => { await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef) .then(() => { createCaseCompleteMessage(containerName, tempCaseRef); - return res.status(200).json(data); + return res.status(200).json({ + status: "success", + }); }) .catch((error) => { console.log(