diff --git a/app/controllers/tasks.js b/app/controllers/tasks.js index f3f02d1e..46a0f78d 100644 --- a/app/controllers/tasks.js +++ b/app/controllers/tasks.js @@ -149,14 +149,17 @@ export default class TasksController extends Controller { const cleanBody = this.constructReqBody(taskData); if (taskData.status || taskData.percentCompleted) { try { - const response = await fetch(`${API_BASE_URL}/tasks/self/${taskId}`, { - method: 'PATCH', - body: JSON.stringify(cleanBody), - headers: { - 'Content-Type': 'application/json', - }, - credentials: 'include', - }); + const response = await fetch( + `${API_BASE_URL}/tasks/self/${taskId}?userStatusFlag=true`, + { + method: 'PATCH', + body: JSON.stringify(cleanBody), + headers: { + 'Content-Type': 'application/json', + }, + credentials: 'include', + } + ); if (response.ok) { this.toast.success('Successfully updated the task', '', {