hooks fixes and ordering of events
This commit is contained in:
+16
-20
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user