Skip to content

Commit

Permalink
FIx: mapper에서 recipeListMapper로 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
GeonH0 committed Jun 19, 2024
1 parent bb8fcff commit d529f15
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RecipeListViewModel: InputRecipeListViewModel, OutputRecipeListViewModel {
private let disposeBag = DisposeBag()
private let fetchFeedListUseCase: FetchFeedListUseCase
private let searchFeedListUseCase: SearchFeedListUseCase
private let mapper = RecipeMapper()
private let recipeListMapper = RecipeMapper()
private weak var delegate: RecipeListViewModelDelegate?

private var currentPage: Int = 1
Expand Down Expand Up @@ -89,7 +89,7 @@ class RecipeListViewModel: InputRecipeListViewModel, OutputRecipeListViewModel {
guard let recipe = allRecipes.first(where: { $0.id == id }) else {
return nil
}
return mapper.mapToRecipeItemViewModel(from: recipe)
return recipeListMapper.mapToRecipeItemViewModel(from: recipe)
}

func resetSearch() {
Expand Down Expand Up @@ -139,7 +139,7 @@ class RecipeListViewModel: InputRecipeListViewModel, OutputRecipeListViewModel {
} else {
allRecipes.append(contentsOf: recipes)
}
let recipeViewModels = mapper.mapToRecipeListItemViewModels(from: recipes)
let recipeViewModels = recipeListMapper.mapToRecipeListItemViewModels(from: recipes)
var currentRecipes = try! recipesSubject.value()
if isSearching {
currentRecipes = recipeViewModels
Expand Down

0 comments on commit d529f15

Please sign in to comment.