Remove recipe from local db when deleted
This commit is contained in:
@@ -71,7 +71,7 @@ class RecipesListViewModel @Inject constructor(
|
||||
fun onDeleteConfirm(recipeSummaryEntity: RecipeSummaryEntity) {
|
||||
logger.v { "onDeleteConfirm() called with: recipeSummaryEntity = $recipeSummaryEntity" }
|
||||
viewModelScope.launch {
|
||||
val result = recipeRepo.deleteRecipe(recipeSummaryEntity.slug)
|
||||
val result = recipeRepo.deleteRecipe(recipeSummaryEntity)
|
||||
_deleteRecipeResult.emit(result)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user