This commit is contained in:
Kenneth Jannette
2024-02-29 15:25:45 -06:00
parent b775c1e259
commit 814652f54c
2 changed files with 10 additions and 2 deletions

View File

@@ -74,6 +74,11 @@ const UploadModal = (props) => {
responseGenerations: 0, responseGenerations: 0,
}; };
if (radioValue === "complaint") {
const docType = "requests-out";
data["docType"] = docType;
}
try { try {
const documentsRef = collection(db, "documents"); const documentsRef = collection(db, "documents");
await setDoc(doc(documentsRef, `${uuidName}`), data); await setDoc(doc(documentsRef, `${uuidName}`), data);
@@ -153,7 +158,7 @@ const UploadModal = (props) => {
setIsLoading(true); setIsLoading(true);
try { try {
const response = await processFile(); const response = await processFile();
console.log("~~~~~~~~~~~~~~~~~~~~~response", response);
if (response.res?.status !== 200) { if (response.res?.status !== 200) {
saveToDb(response.uuidName); saveToDb(response.uuidName);
return; return;

View File

@@ -290,7 +290,10 @@ export const DocCard = (props) => {
const report = (documentId, docType) => { const report = (documentId, docType) => {
//console.log("report documentId, docType", documentId, docType); //console.log("report documentId, docType", documentId, docType);
}; };
console.log(
">>>>>>>>>>>>>>>>>>>>>>>>>>>________------------------------------------__>docType",
docType
);
return ( return (
<div className="doc-card-container"> <div className="doc-card-container">
<div className="doc-card-input"> <div className="doc-card-input">