This commit is contained in:
Kenneth Jannette
2024-03-07 20:24:59 -06:00
parent a344cfbfd4
commit c713033e71
3 changed files with 15 additions and 5 deletions

View File

@@ -127,12 +127,15 @@ const UploadModal = (props) => {
if (!clientPosition) {
return;
}
const now = new Date();
try {
if (radioValue.toLowerCase() === "complaint") {
if (clientPosition === "Plaintiff") {
console.log(
"111111111--------------------------sending POST to:",
`${apiUrl}/v1/gen-disc-request-pl`
`${apiUrl}/v1/gen-disc-request-pl`,
"----------------------------------------at time:",
`${now}`
);
const response = await fetch(`${apiUrl}/v1/gen-disc-request-pl`, {
method: "POST",
@@ -143,7 +146,9 @@ const UploadModal = (props) => {
} else if (clientPosition === "Defendant") {
console.log(
"222222222------------------------------sending POST to:",
`${apiUrl}/v1/gen-disc-request-df`
`${apiUrl}/v1/gen-disc-request-df`,
"----------------------------------------at time:",
`${now}`
);
const response = await fetch(`${apiUrl}/v1/gen-disc-request-df`, {
method: "POST",