appelacomplete tag on completion
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user