TODO 일정 변경 문제 해결: active 상태 할일은 delay 엔드포인트 사용

This commit is contained in:
Hyungi Ahn
2025-09-04 11:18:02 +09:00
parent e96f8b92f8
commit 16eec06b7c

View File

@@ -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()
});
}