@@ -10,16 +10,13 @@ import Foundation
1010final class TodoRepositoryImpl : TodoRepository {
1111 private let todoService : TodoService
1212 private let todoCategoryService : TodoCategoryService
13- private let widgetSyncEventBus : WidgetSyncEventBus
1413
1514 init (
1615 todoService: TodoService ,
17- todoCategoryService: TodoCategoryService ,
18- widgetSyncEventBus: WidgetSyncEventBus
16+ todoCategoryService: TodoCategoryService
1917 ) {
2018 self . todoService = todoService
2119 self . todoCategoryService = todoCategoryService
22- self . widgetSyncEventBus = widgetSyncEventBus
2320 }
2421
2522 func fetchTodos( _ query: TodoQuery , cursor: TodoCursor ? ) async throws -> TodoPage {
@@ -92,17 +89,14 @@ final class TodoRepositoryImpl: TodoRepository {
9289 func upsertTodo( _ todo: Todo ) async throws {
9390 let request = TodoRequest . fromDomain ( todo)
9491 try await todoService. upsertTodo ( request: request)
95- widgetSyncEventBus. publish ( . todoDataChanged)
9692 }
9793
9894 func deleteTodo( _ todoId: String ) async throws {
9995 try await todoService. deleteTodo ( todoId: todoId)
100- widgetSyncEventBus. publish ( . todoDataChanged)
10196 }
10297
10398 func undoDeleteTodo( _ todoId: String ) async throws {
10499 try await todoService. undoDeleteTodo ( todoId: todoId)
105- widgetSyncEventBus. publish ( . todoDataChanged)
106100 }
107101}
108102
0 commit comments