Remove recipe from local db when deleted

This commit is contained in:
Kirill Kamakin
2022-12-16 20:24:40 +01:00
parent 28fa19c988
commit 226097d096
9 changed files with 31 additions and 37 deletions

View File

@@ -46,4 +46,7 @@ interface RecipeDao {
@Query("UPDATE recipe_summaries SET is_favorite = 0 WHERE slug NOT IN (:favorites)")
suspend fun setNonFavorite(favorites: List<String>)
@Delete
suspend fun deleteRecipe(entity: RecipeSummaryEntity)
}