console log tidying
This commit is contained in:
+110
-110
@@ -32,7 +32,7 @@ export const getIP = (req) => {
|
||||
? forwarded.split(/, /)[0]
|
||||
: req.socket.remoteAddress;
|
||||
|
||||
console.log(
|
||||
console.info(
|
||||
"\n====================\n Client IP address: " + ip,
|
||||
"\n=====================\n"
|
||||
);
|
||||
@@ -462,7 +462,7 @@ export const getBasicSearchDetails = (
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this error", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -472,7 +472,7 @@ export const getBasicPartSavedDetails = (
|
||||
primaryIdAttribute,
|
||||
incidentID
|
||||
) => {
|
||||
// console.log(
|
||||
//console.log(
|
||||
// "///////api call: ",
|
||||
// BASE_URL +
|
||||
// "/api/endpoint/getbasicpartsaveddetails_api?appealTypeName=" +
|
||||
@@ -517,7 +517,7 @@ export const getBasicSearchDetailsPaged = (
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this error", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -674,7 +674,6 @@ export const getPickLists = (whichForm) => {
|
||||
};
|
||||
|
||||
export const getPersonalAccount = (contactid) => {
|
||||
console.log(contactid);
|
||||
return axios
|
||||
.get(
|
||||
BASE_URL +
|
||||
@@ -702,7 +701,7 @@ export const getAppealID = (
|
||||
updateFormCollection,
|
||||
primaryAttribute
|
||||
) => {
|
||||
// console.log(
|
||||
//console.log(
|
||||
// "is this the collection?:",
|
||||
// getFormCollection(updateFormCollection)
|
||||
// )
|
||||
@@ -722,12 +721,12 @@ export const getAppealID = (
|
||||
const result = Object.entries(res.data.value[0]).filter(
|
||||
([key]) => !key.startsWith("_")
|
||||
)[0][1];
|
||||
console.log("result:", res.data);
|
||||
// console.log("result:", res.data);
|
||||
var appealID = result;
|
||||
return appealID;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("API call error", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -780,7 +779,7 @@ export const getMyRepresentations = (loggedInUserId) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -793,7 +792,7 @@ export const getMyRepresentationsProxy = (loggedInUserId) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -802,7 +801,7 @@ export const getRepresentations = (incidentID) => {
|
||||
.get("/api/endpoint/getrepresentations_api?incidentID=" + incidentID)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -815,7 +814,7 @@ export const getRepresentationsProxy = (incidentID) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -828,7 +827,7 @@ export const getWatchedCases = (loggedInUserId) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -840,7 +839,7 @@ export const getWatchedCasesProxy = (loggedInUserId) => {
|
||||
)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -873,18 +872,18 @@ export const getAwaitingSubmission = (loggedInUserId) => {
|
||||
};
|
||||
|
||||
export const getAwaitingSubmissionFromBlob = (containerName) => {
|
||||
console.log(
|
||||
"///////////////////////\ngetAwaitingSubmissionFromBlob: " +
|
||||
containerName,
|
||||
BASE_URL +
|
||||
"/api/file/getawaitingsubmissionfromblob?container=" +
|
||||
containerName +
|
||||
hashAPIPath(
|
||||
"/api/file/getawaitingsubmissionfromblob?container=" +
|
||||
containerName
|
||||
),
|
||||
"\n///////////////////////\n"
|
||||
);
|
||||
//console.log(
|
||||
// "///////////////////////\ngetAwaitingSubmissionFromBlob: " +
|
||||
// containerName,
|
||||
// BASE_URL +
|
||||
// "/api/file/getawaitingsubmissionfromblob?container=" +
|
||||
// containerName +
|
||||
// hashAPIPath(
|
||||
// "/api/file/getawaitingsubmissionfromblob?container=" +
|
||||
// containerName
|
||||
// ),
|
||||
// "\n///////////////////////\n"
|
||||
// );
|
||||
return axios
|
||||
.get(
|
||||
BASE_URL +
|
||||
@@ -904,15 +903,15 @@ export const getAwaitingSubmissionFromBlob = (containerName) => {
|
||||
};
|
||||
|
||||
export const getRepsFromBlob = (containerName) => {
|
||||
console.log(
|
||||
"///////////////////////\ngetRepsFromBlob function: " +
|
||||
containerName +
|
||||
"\n///////////////////////\n",
|
||||
BASE_URL +
|
||||
"/api/file/getrepsblob?container=" +
|
||||
containerName +
|
||||
hashAPIPath("/api/file/getrepsblob?container=" + containerName)
|
||||
);
|
||||
//console.log(
|
||||
// "///////////////////////\ngetRepsFromBlob function: " +
|
||||
// containerName +
|
||||
// "\n///////////////////////\n",
|
||||
// BASE_URL +
|
||||
// "/api/file/getrepsblob?container=" +
|
||||
// containerName +
|
||||
// hashAPIPath("/api/file/getrepsblob?container=" + containerName)
|
||||
// );
|
||||
|
||||
return axios
|
||||
.get(
|
||||
@@ -925,22 +924,23 @@ export const getRepsFromBlob = (containerName) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(
|
||||
"///////////////////////\ngetRepsFromBlob error response: " +
|
||||
error +
|
||||
"\n///////////////////////\n"
|
||||
);
|
||||
console.log("API call error", error);
|
||||
//console.log(
|
||||
// "///////////////////////\ngetRepsFromBlob error response: " +
|
||||
// error +
|
||||
// "\n///////////////////////\n"
|
||||
// );
|
||||
console.log(consoleLogger(error));
|
||||
//console.log("API call error", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getRepsFromBlobProxy = (containerName) => {
|
||||
console.log(
|
||||
"///////////////////////getRepsFromBlobProxy: " + containerName,
|
||||
"/api/file/getawaitingsubmissionfromblobproxy?container=" +
|
||||
containerName,
|
||||
"\n///////////////////////\n"
|
||||
);
|
||||
//console.log(
|
||||
// "///////////////////////getRepsFromBlobProxy: " + containerName,
|
||||
// "/api/file/getawaitingsubmissionfromblobproxy?container=" +
|
||||
// containerName,
|
||||
// "\n///////////////////////\n"
|
||||
// );
|
||||
|
||||
return axios
|
||||
.get(
|
||||
@@ -1052,7 +1052,7 @@ export const updatePassword = (contactId, newpassword) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1089,7 +1089,7 @@ export const createWatchedCases = (formValues) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1125,7 +1125,7 @@ export const createNewCase = (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1171,14 +1171,14 @@ export const createNewCaseBlob = (
|
||||
data: data,
|
||||
};
|
||||
|
||||
console.log("the query url for crearte csase:", queryUrl);
|
||||
//console.log("the query url for crearte csase:", queryUrl);
|
||||
|
||||
return axios(config)
|
||||
.then((res) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1275,7 +1275,7 @@ export const patchCase = async (incidentid) => {
|
||||
};
|
||||
|
||||
export const getCase = (incidentID) => {
|
||||
// console.log(
|
||||
//console.log(
|
||||
// "////////////// ------" +
|
||||
// BASE_URL +
|
||||
// "/api/endpoint/getcase_api?incidentID=" +
|
||||
@@ -1288,7 +1288,7 @@ export const getCase = (incidentID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1315,7 +1315,7 @@ export const deleteMyRepresentations = (myRepresentationsID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1334,7 +1334,7 @@ export const deleteAwaitingSubmissions = (incidentID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1359,7 +1359,7 @@ export const deleteAwaitingSubmissionsFromBlob = (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1387,7 +1387,7 @@ export const deleteMyRepresentationsFromBlob = (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1405,7 +1405,7 @@ export const deleteWatchedCases = (watchedCaseID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1424,7 +1424,7 @@ export const createAccount = (formValues) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1446,7 +1446,7 @@ export const uploadFiles = async (
|
||||
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
for (let j = 0; j < files[i].length; j++) {
|
||||
console.log("upload files:", files[i][j].name);
|
||||
//console.log("upload files:", files[i][j].name);
|
||||
formData.append(files[i][j].name, files[i][j]);
|
||||
}
|
||||
}
|
||||
@@ -1467,7 +1467,7 @@ export const uploadFiles = async (
|
||||
const res = await axios(config);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1490,7 +1490,7 @@ export const uploadRepFiles = async (
|
||||
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
for (let j = 0; j < files[i].length; j++) {
|
||||
console.log("upload rep files:", files[i][j].name);
|
||||
//console.log("upload rep files:", files[i][j].name);
|
||||
formData.append(files[i][j].name, files[i][j]);
|
||||
}
|
||||
}
|
||||
@@ -1511,7 +1511,7 @@ export const uploadRepFiles = async (
|
||||
const res = await axios(config);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1543,7 +1543,7 @@ export const generateRepPDF = async (formValues, containerID, casefolderID) => {
|
||||
const res = await axios(config);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1580,25 +1580,25 @@ export const generateAppealPDF = async (
|
||||
const res = await axios(config);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
export const getFilesFromBlob = (containerName, casefolderID) => {
|
||||
console.log(
|
||||
" get files from blob",
|
||||
BASE_URL +
|
||||
"/api/file/getbloblist?container=" +
|
||||
containerName +
|
||||
"&casefolderID=" +
|
||||
casefolderID +
|
||||
hashAPIPath(
|
||||
"/api/file/getbloblist?container=" +
|
||||
containerName +
|
||||
"&casefolderID=" +
|
||||
casefolderID
|
||||
)
|
||||
);
|
||||
//console.log(
|
||||
// " get files from blob",
|
||||
// BASE_URL +
|
||||
// "/api/file/getbloblist?container=" +
|
||||
// containerName +
|
||||
// "&casefolderID=" +
|
||||
// casefolderID +
|
||||
// hashAPIPath(
|
||||
// "/api/file/getbloblist?container=" +
|
||||
// containerName +
|
||||
// "&casefolderID=" +
|
||||
// casefolderID
|
||||
// )
|
||||
// );
|
||||
return axios
|
||||
.get(
|
||||
BASE_URL +
|
||||
@@ -1618,7 +1618,7 @@ export const getFilesFromBlob = (containerName, casefolderID) => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1640,7 +1640,7 @@ export const getFilesFromBlobHashed = (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1662,7 +1662,7 @@ export const deleteBlob = async (
|
||||
);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1683,30 +1683,30 @@ export const downloadBlob = (containerName, blobName) => {
|
||||
"content-disposition",
|
||||
"attachment; filename=" + blobName
|
||||
);
|
||||
console.log("has downloaded");
|
||||
//console.log("has downloaded");
|
||||
|
||||
return res.status(200).send(response.data);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getProgressFromBlob = async (containerName, casereference) => {
|
||||
console.log(
|
||||
/////////////////\ngetProgressFromBlob",
|
||||
BASE_URL +
|
||||
"/api/file/getprogressobjblob?container=" +
|
||||
containerName +
|
||||
"&casefolderID=" +
|
||||
casereference +
|
||||
hashAPIPath(
|
||||
"/api/file/getprogressobjblob?container=" +
|
||||
containerName +
|
||||
"&casefolderID=" +
|
||||
casereference
|
||||
)
|
||||
);
|
||||
//console.log(
|
||||
// /////////////////\ngetProgressFromBlob",
|
||||
// BASE_URL +
|
||||
// "/api/file/getprogressobjblob?container=" +
|
||||
// containerName +
|
||||
// "&casefolderID=" +
|
||||
// casereference +
|
||||
// hashAPIPath(
|
||||
// "/api/file/getprogressobjblob?container=" +
|
||||
// containerName +
|
||||
// "&casefolderID=" +
|
||||
// casereference
|
||||
// )
|
||||
// );
|
||||
try {
|
||||
const res = await axios.get(
|
||||
BASE_URL +
|
||||
@@ -1723,7 +1723,7 @@ export const getProgressFromBlob = async (containerName, casereference) => {
|
||||
);
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1740,7 +1740,7 @@ export const sendEmail = async (
|
||||
"personalisation": personalisation,
|
||||
};
|
||||
|
||||
// console.log(
|
||||
//console.log(
|
||||
// "hwewwew: ",
|
||||
// templateId,
|
||||
// emailAddress,
|
||||
@@ -1761,7 +1761,7 @@ export const sendEmail = async (
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1773,7 +1773,7 @@ export const getNotice = () => {
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("this serror", error);
|
||||
consoleLogger(error);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1786,7 +1786,7 @@ export const getPortalLogin = async (emailAddress) => {
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
console.log(consoleLogger(error));
|
||||
console.log("thiserror", error);
|
||||
|
||||
return JSON.stringify(error);
|
||||
});
|
||||
};
|
||||
@@ -1801,8 +1801,8 @@ export const createContainerProxy = (containerName) => {
|
||||
.get(BASE_URL + queryUrl)
|
||||
.then((res) => res.data)
|
||||
.catch((error) => {
|
||||
//console.log(consoleLogger(error));
|
||||
console.log("thiserror", error);
|
||||
console.log(consoleLogger(error));
|
||||
|
||||
return JSON.stringify(error);
|
||||
});
|
||||
};
|
||||
@@ -1890,10 +1890,10 @@ export const getAddressSearch = async (searchString) => {
|
||||
const params = new URLSearchParams(searchString);
|
||||
const str = params.toString();
|
||||
|
||||
console.log(
|
||||
"the url",
|
||||
BASE_URL + "/api/endpoint/getbasicsearch_by_address_api?" + str
|
||||
);
|
||||
//console.log(
|
||||
// "the url",
|
||||
// BASE_URL + "/api/endpoint/getbasicsearch_by_address_api?" + str
|
||||
// );
|
||||
try {
|
||||
const res = await axios.get(
|
||||
BASE_URL + "/api/endpoint/getbasicsearch_by_address_api?" + str
|
||||
|
||||
Reference in New Issue
Block a user