cleaned up rep functionality
This commit is contained in:
+28
-23
@@ -263,7 +263,7 @@ export const createBlob = async (formContent, containerName, caseref) => {
|
||||
blobType: "Appeal",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -296,7 +296,7 @@ export const createRepBlob = async (formContent, containerName, caseref) => {
|
||||
blobType: "Representation",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -464,7 +464,7 @@ export const uploadPDFRepFiles = async (
|
||||
blobType: "RepresentationPDF",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -486,21 +486,21 @@ export const uploadPDFAppealFiles = async (
|
||||
|
||||
const files = formContent;
|
||||
|
||||
console.log(
|
||||
"///////////////////////////// \n",
|
||||
formContent,
|
||||
containerName,
|
||||
foldername,
|
||||
"\n///////////////////////////// \n"
|
||||
);
|
||||
console.log(
|
||||
"///////////////////////////// \n",
|
||||
"appeal pdf files...",
|
||||
files,
|
||||
Object.keys(files).length,
|
||||
foldername,
|
||||
"\n///////////////////////////// \n"
|
||||
);
|
||||
// console.log(
|
||||
// "///////////////////////////// \n",
|
||||
// formContent,
|
||||
// containerName,
|
||||
// foldername,
|
||||
// "\n///////////////////////////// \n"
|
||||
// );
|
||||
// console.log(
|
||||
// "///////////////////////////// \n",
|
||||
// "appeal pdf files...",
|
||||
// files,
|
||||
// Object.keys(files).length,
|
||||
// foldername,
|
||||
// "\n///////////////////////////// \n"
|
||||
// );
|
||||
|
||||
// console.log(`files[${prop}] = ${files[prop][0].size}`);
|
||||
console.log(foldername + "/files/" + formContent.split("tmp/")[1]);
|
||||
@@ -517,7 +517,7 @@ export const uploadPDFAppealFiles = async (
|
||||
blobType: "AppealPDF",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -556,7 +556,7 @@ export const uploadPDFCaseFiles = async (
|
||||
blobType: "AppealPDF",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -775,7 +775,7 @@ export const getCaseBlob = async (
|
||||
blobType: "Case",
|
||||
};
|
||||
|
||||
console.log("the tags:", tags);
|
||||
//console.log("the tags:", tags);
|
||||
const withTags = await blockBlobClient.setTags(tags);
|
||||
const withMeta = await blockBlobClient.setMetadata(tags);
|
||||
|
||||
@@ -893,7 +893,12 @@ export const getAllProgressBlobs = async (containerName) => {
|
||||
});
|
||||
}
|
||||
|
||||
console.log("blobObj:", blobObj);
|
||||
console.log(
|
||||
"\n////////////////////////////\n",
|
||||
"blobObj:",
|
||||
blobObj,
|
||||
"\n////////////////////////////"
|
||||
);
|
||||
|
||||
return blobObj;
|
||||
};
|
||||
@@ -932,7 +937,7 @@ export const getRepsBlobs = async (containerName) => {
|
||||
listOptions
|
||||
)) {
|
||||
const blobClient = await containerClient.getBlobClient(blob.name);
|
||||
console.log("getreps blob blob", blob);
|
||||
console.log("getreps blob:", blob);
|
||||
blob.name.split("/")[2].indexOf("_rep.json") > 0 &&
|
||||
blob.name.split("/")[2].indexOf("undefined") < 0 &&
|
||||
blobObj.push({
|
||||
|
||||
Reference in New Issue
Block a user