diff --git a/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/FetchFeedListUseCase.swift b/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/FetchFeedListUseCase.swift index db17468..42bfbee 100644 --- a/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/FetchFeedListUseCase.swift +++ b/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/FetchFeedListUseCase.swift @@ -8,7 +8,7 @@ import RxSwift protocol FetchFeedListUseCase { - func execute() -> Observable> + func execute() -> Single> } class DefaultFetchFeedListUseCase: FetchFeedListUseCase { @@ -18,7 +18,7 @@ class DefaultFetchFeedListUseCase: FetchFeedListUseCase { self.repository = repository } - func execute() -> Observable> { + func execute() -> Single> { return repository.fetchRecipes() .map { recipes in return .success(recipes) diff --git a/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/SearchFeedUseCase.swift b/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/SearchFeedUseCase.swift index aec4bb1..37715b8 100644 --- a/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/SearchFeedUseCase.swift +++ b/HomeCafeRecipes/HomeCafeRecipes/Domain/UseCases/SearchFeedUseCase.swift @@ -8,7 +8,7 @@ import RxSwift protocol SearchFeedListUseCase { - func execute(title: String) -> Observable> + func execute(title: String) -> Single> } class DefaultSearchFeedListUseCase: SearchFeedListUseCase { @@ -18,7 +18,7 @@ class DefaultSearchFeedListUseCase: SearchFeedListUseCase { self.repository = repository } - func execute(title: String) -> Observable> { + func execute(title: String) -> Single> { return repository.searchRecipes(title: title) .map { recipes in return .success(recipes)