Skip to content

Commit

Permalink
feat: 오늘하루 미루기 메서드 구현 resolve #78
Browse files Browse the repository at this point in the history
  • Loading branch information
daeseong9388 committed Nov 24, 2022
1 parent 6d38634 commit 8d0cb49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/core/todo/todoList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export class Todo implements InputTodo {
this.until = new Date(this.until.getTime() + DAY);
}

postponeForToday(): void {}
postponeForToday(): void {
const today = new Date();
this.from = new Date(today.getFullYear(), today.getMonth(), today.getDate() + 1);
}

lowerImportance(): void {}

Expand Down Expand Up @@ -142,6 +145,7 @@ export class TodoList {
}

postponeForToday(): TodoList {
this.getActiveTodo().postponeForToday();
return new TodoList(this.todoList);
}

Expand Down

0 comments on commit 8d0cb49

Please sign in to comment.