This commit is contained in:
rca 2024-07-19 04:03:55 +09:00
parent aac2df4476
commit 8921f8bac5

View File

@ -39,7 +39,7 @@ export const getTaskList = async (): Promise<TaskListResponse> => {
export const completeTask = async (taskId: string, childId: string): Promise<void> => {
const params = new URLSearchParams();
params.append('childId', childId);
const response = await api.post(`/task/${taskId}/complete`, params);
const response = await api.post(`/task/${taskId}/complete`, {}, { params });
if (response.status !== 200) {
throw new Error('タスクの完了に失敗しました');
}