diff --git a/Chapter 02/todo/src/jsonTodoCollection.ts b/Chapter 02/todo/src/jsonTodoCollection.ts index e102d96..17ea18f 100644 --- a/Chapter 02/todo/src/jsonTodoCollection.ts +++ b/Chapter 02/todo/src/jsonTodoCollection.ts @@ -11,7 +11,7 @@ export class JsonTodoCollection extends TodoCollection { private database: LowSync; constructor(public userName: string, todoItems: TodoItem[] = []) { - super(userName, []); + super(userName, todoItems); this.database = new LowSync(new JSONFileSync("Todos.json")); this.database.read();