more
This commit is contained in:
@@ -239,16 +239,19 @@ const RequestEditPage = () => {
|
||||
const res = await postEditedResponses();
|
||||
|
||||
try {
|
||||
const response = await fetch(`${apiUrl}/v1/generate-request-docx/`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
docId: docId,
|
||||
}),
|
||||
});
|
||||
const response = await fetch(
|
||||
`${apiUrl}/v1/generate-request-docx/${docId}`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
docId: docId,
|
||||
}),
|
||||
}
|
||||
);
|
||||
return response;
|
||||
} catch (error) {
|
||||
console.error("Error sending requests to the server:", error);
|
||||
|
||||
Reference in New Issue
Block a user