hooks fixes and ordering of events

This commit is contained in:
2024-11-16 07:45:38 +00:00
parent aaf9b3e574
commit 4bf10d97db
6 changed files with 234 additions and 152 deletions
+16 -20
View File
@@ -961,7 +961,7 @@ export const getRepsFromBlob = (containerName) => {
});
};
export const getRepsFromBlobProxy = (containerName) => {
export const getRepsFromBlobProxy = async (containerName) => {
//console.log(
// "///////////////////////getRepsFromBlobProxy: " + containerName,
// "/api/file/getawaitingsubmissionfromblobproxy?container=" +
@@ -969,8 +969,8 @@ export const getRepsFromBlobProxy = (containerName) => {
// "\n///////////////////////\n"
// );
return axios
.get(
try {
const res = await axios.get(
// BASE_URL +
"/api/file/getrepsblobproxy?container=" + containerName
// +
@@ -978,16 +978,14 @@ export const getRepsFromBlobProxy = (containerName) => {
// "/api/file/getawaitingsubmissionfromblob?container=" +
// containerName
// )
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
);
return res.data;
} catch (error) {
consoleLogger(error);
}
};
export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
export const getAwaitingSubmissionFromBlobProxy = async (containerName) => {
console.log(
"///////////////////////getAwaitingSubmissionFromBlobProxy: " +
containerName,
@@ -996,8 +994,8 @@ export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
"\n///////////////////////\n"
);
return axios
.get(
try {
const res = await axios.get(
// BASE_URL +
"/api/file/getawaitingsubmissionfromblobproxy?container=" +
containerName
@@ -1006,13 +1004,11 @@ export const getAwaitingSubmissionFromBlobProxy = (containerName) => {
// "/api/file/getawaitingsubmissionfromblob?container=" +
// containerName
// )
)
.then((res) => {
return res.data;
})
.catch((error) => {
consoleLogger(error);
});
);
return res.data;
} catch (error) {
consoleLogger(error);
}
};
export const getPortalModuleDetails = async (appealType, caseReference) => {