adding logging

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-03 10:48:51 +01:00
parent 94c99a7b5a
commit f383a26df4

View file

@ -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);
},
}