mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-13 05:08:01 -05:00
Refactor API endpoint for saving content in ExperimentalOCR component
This commit is contained in:
parent
3054643096
commit
cc1d66e1dc
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ const ExperimentalOCR: React.FC = () => {
|
||||||
suggested_content: ocrResult,
|
suggested_content: ocrResult,
|
||||||
};
|
};
|
||||||
|
|
||||||
await axios.post("/api/save-content", requestPayload);
|
await axios.patch("/api/update-documents", [requestPayload]);
|
||||||
setStatus('Content saved successfully.');
|
setStatus('Content saved successfully.');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Error saving content:", err);
|
console.error("Error saving content:", err);
|
||||||
|
|
Loading…
Reference in a new issue