TODO 일정 변경 문제 해결: active 상태 할일은 delay 엔드포인트 사용
This commit is contained in:
@@ -282,11 +282,10 @@ function todosApp() {
|
|||||||
estimated_minutes: newMinutes
|
estimated_minutes: newMinutes
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// 기존 일정 수정
|
// 기존 일정 지연 (active 상태의 할일)
|
||||||
console.log('🔄 기존 일정 수정 API 호출');
|
console.log('🔄 기존 일정 지연 API 호출');
|
||||||
response = await window.api.put(`/todos/${this.currentTodo.id}`, {
|
response = await window.api.put(`/todos/${this.currentTodo.id}/delay`, {
|
||||||
start_date: startDate.toISOString(),
|
delayed_until: startDate.toISOString()
|
||||||
estimated_minutes: newMinutes
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user