TASK22269: reuse contentLength locals in touched azurestorage blob loops

This commit is contained in:
2026-03-26 11:36:47 +00:00
parent 48878e9ebd
commit 830e36d0c4
2 changed files with 39 additions and 4 deletions
+7 -4
View File
@@ -273,6 +273,7 @@ export const getBlobs = async (containerName, casefolderID) => {
})) {
const blobPathParts = blob.name.split("/");
const fileName = blobPathParts[2];
const contentLength = blob.properties.contentLength;
blobObj.push({
"name": fileName,
@@ -281,8 +282,8 @@ export const getBlobs = async (containerName, casefolderID) => {
"versionId": blob.versionId,
"caseObj": buildCaseObjectPath(casefolderID),
"isCurrentVersion": blob.isCurrentVersion,
"contentLength": blob.properties.contentLength,
"size": blob.properties.contentLength,
"contentLength": contentLength,
"size": contentLength,
"contentType": blob.contentType,
"lastModified": blob.properties.lastModified,
"filepath": buildDownloadBlobQueryPath({
@@ -1295,6 +1296,7 @@ export const getProgressBlobs = async (containerName, caseReference) => {
})) {
const blobPathParts = blob.name.split("/");
const appealBlobName = blobPathParts[1];
const contentLength = blob.properties.contentLength;
consoleLogger("getProgressBlobs in here", blobPathParts);
blobObj.push({
@@ -1303,7 +1305,7 @@ export const getProgressBlobs = async (containerName, caseReference) => {
"versionId": blob.versionId,
"caseObj": buildCaseObjectPath(caseReference),
"isCurrentVersion": blob.isCurrentVersion,
"contentLength": blob.properties.contentLength,
"contentLength": contentLength,
"contentType": blob.contentType,
"lastModified": blob.properties.lastModified,
...buildHashMetadataPaths({
@@ -1476,6 +1478,7 @@ export const getRepsFilesBlobs = async (
const blobPathParts = blob.name.split("/");
const casefolderPath = blobPathParts[0] + "/" + blobPathParts[1];
const repFileName = blobPathParts[3];
const contentLength = blob.properties.contentLength;
consoleLogger(blob.name);
@@ -1485,7 +1488,7 @@ export const getRepsFilesBlobs = async (
"documentType": getDocumentTypeFromFilename(repFileName),
"versionId": blob.versionId,
"isCurrentVersion": blob.isCurrentVersion,
"contentLength": blob.properties.contentLength,
"contentLength": contentLength,
"filenameprefix": filenamePrefix,
"filepath": buildDownloadBlobQueryPath({
containerName,