more
This commit is contained in:
@@ -40,8 +40,8 @@ const CaseDetailsPage = () => {
|
|||||||
? process.env.REACT_APP_API_DEV
|
? process.env.REACT_APP_API_DEV
|
||||||
: process.env.REACT_APP_API_PROD;
|
: process.env.REACT_APP_API_PROD;
|
||||||
|
|
||||||
async function generateOutgoingDiscReq(docId, radioValue, clientPosition) {
|
// NEVER CHANGE THESE ARGS
|
||||||
console.log("generateOutgoingDiscReq-------------------");
|
async function generateOutgoingDiscReq(docId, clientPosition) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`${apiUrl}/v1/generate-outgoing-disc-req/${docId}/${clientPosition}`,
|
`${apiUrl}/v1/generate-outgoing-disc-req/${docId}/${clientPosition}`,
|
||||||
@@ -52,23 +52,23 @@ const CaseDetailsPage = () => {
|
|||||||
const res = response;
|
const res = response;
|
||||||
return res;
|
return res;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("error", err);
|
console.log("generate out error", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// NEVER CHANGE THESE ARGS
|
||||||
async function generateRespIncomingDiscReq(
|
async function generateRespIncomingDiscReq(docId, clientPosition) {
|
||||||
docId,
|
try {
|
||||||
clientPosition,
|
const response = await fetch(
|
||||||
isComplaint
|
`${apiUrl}/v1/generate-disc-responses/${docId}/${clientPosition}`,
|
||||||
) {
|
{
|
||||||
const response = await fetch(
|
method: "POST",
|
||||||
`${apiUrl}/v1/generate-disc-responses/${docId}/${clientPosition}`,
|
}
|
||||||
{
|
);
|
||||||
method: "POST",
|
const res = response;
|
||||||
}
|
return res;
|
||||||
);
|
} catch (err) {
|
||||||
const res = response;
|
console.log("gen resp err", err);
|
||||||
return res;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleSuccess(docId, docType, radioValue) {
|
async function handleSuccess(docId, docType, radioValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user