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