updated file name prefixes

This commit is contained in:
2024-05-21 14:03:24 +01:00
parent f4c821a5d4
commit 6bf933b2f1
17 changed files with 503 additions and 208 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export default async function ApiProxy(req, res) {
incidentID +
")?$select=ticketnumber,title,pinswg_appealcasetype";
console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
//console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
return axios
.get(
+1 -2
View File
@@ -32,8 +32,7 @@ ApiProxy.get(async (req, res) => {
res.setHeader(
"content-disposition",
"attachment; filename=" +
decodeURI(blobName.slice(blobName.indexOf("_") + 1))
"attachment; filename=" + decodeURI(blobName)
);
return res.status(200).send(downloaded);
} else {
+9 -2
View File
@@ -158,8 +158,15 @@ export default async function handler(req, res) {
}
);
let newFileListArr = blobProgress.filesList.concat(
appealBodyObj.filesList[0]
let newFileListArr = [];
appealBodyObj.filesList.hasOwnProperty("value")
? (newFileListArr = blobProgress.filesList.concat(
appealBodyObj.filesList.value[0]
))
: (newFileListArr = blobProgress.filesList);
newFileListArr = newFileListArr.filter(
(value) => Object.keys(value).length !== 0
);
Object.assign(blobProgress, {