another bug fix v0.0.10
This commit is contained in:
parent
341ac14839
commit
a99e82dd4a
@ -110,9 +110,7 @@ const updateTask = (userToken, taskTitle, taskDescription, completedStatus) => {
|
|||||||
"is_completed": completedStatus
|
"is_completed": completedStatus
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(body);
|
const res = fetch(`${localhostUrl}/user/update-tasks`, {
|
||||||
console.log(taskDescription);
|
|
||||||
const res = fetch(`${url}/user/update-tasks`, {
|
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
headers: {Authorization: `Bearer ${userToken}`, "Content-type": "application/json"},
|
headers: {Authorization: `Bearer ${userToken}`, "Content-type": "application/json"},
|
||||||
body: body
|
body: body
|
||||||
@ -121,4 +119,4 @@ const updateTask = (userToken, taskTitle, taskDescription, completedStatus) => {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadUserTasks();
|
loadUserTasks(token);
|
Loading…
Reference in New Issue
Block a user