let title_copy = title.to_string();
combine_errors(web::block(move || { self_copy.set_recipe_title(recipe_id, &title_copy).map_err(DBAsyncError::from) }).await)
}
+
+ pub async fn set_recipe_description_async(&self, recipe_id: i64, description: &str) -> Result<()> {
+ let self_copy = self.clone();
+ let description_copy = description.to_string();
+ combine_errors(web::block(move || { self_copy.set_recipe_description(recipe_id, &description_copy).map_err(DBAsyncError::from) }).await)
+ }
}
\ No newline at end of file