more
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user