added agent details to new appeal pdf
This commit is contained in:
@@ -782,6 +782,18 @@ export const getCaseBlob = async (
|
||||
return blobName;
|
||||
};
|
||||
|
||||
export const getTempCaseBlob = async (containerName, caseReference) => {
|
||||
const blobName = caseReference + "/case/" + caseReference + "_case.json";
|
||||
const containerToken = await createContainerSas(containerName);
|
||||
const sasUrl = `${STORAGE_PATH}/${containerName}?${containerToken}`;
|
||||
const containerClient = new ContainerClient(sasUrl);
|
||||
const blobClient = containerClient.getBlobClient(blobName);
|
||||
const downloadedBlob = await blobClient.download(0);
|
||||
|
||||
const downloaded = await streamToBuffer(downloadedBlob.readableStreamBody);
|
||||
return JSON.parse(downloaded.toString());
|
||||
};
|
||||
|
||||
export const getProgressBlobs = async (containerName, caseReference) => {
|
||||
const containerToken = await createContainerSas(containerName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user