mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
adding logging
This commit is contained in:
parent
94c99a7b5a
commit
f383a26df4
1 changed files with 3 additions and 1 deletions
|
|
@ -58,14 +58,16 @@ const useCreatePlan = ({
|
|||
});
|
||||
|
||||
const url = process.env.URL + "/api/plan/trigger";
|
||||
console.log("Making request to: " + url);
|
||||
|
||||
const response = fetch(url, {
|
||||
const response = fetch(`/api/plan/trigger`, {
|
||||
method: "POST",
|
||||
body: body,
|
||||
});
|
||||
return response;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.log("Failed to upload file to S3.");
|
||||
console.error(error);
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue