Skip to content

Commit

Permalink
feat: 소요시간 업데이트 메서드 구현 resolve #81
Browse files Browse the repository at this point in the history
  • Loading branch information
daeseong9388 committed Nov 24, 2022
1 parent 12e149a commit 06f57de
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/core/todo/todoList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export class Todo implements InputTodo {

setDone(): void {}

updateElapsedTime(): void {}
updateElapsedTime(elapsedTime: number): void {
this.elapsedTime = elapsedTime;
}

static compare(): (a: Todo, b: Todo) => number {
const today = new Date();
Expand Down Expand Up @@ -160,8 +162,9 @@ export class TodoList {
return [];
}

updateElapsedTime(): Todo[] {
return [];
updateElapsedTime(elapsedTime: number): TodoList {
this.getActiveTodo().updateElapsedTime(elapsedTime);
return new TodoList(this.todoList);
}

getSummary(): any {
Expand Down

0 comments on commit 06f57de

Please sign in to comment.