Skip to main content

update_chapter_image_path

Function update_chapter_image_path 

Source
pub async fn update_chapter_image_path(
    conn: &mut PgConnection,
    chapter_id: Uuid,
    chapter_image_path: Option<String>,
    author_user_id: Uuid,
) -> ModelResult<DatabaseChapter>
Expand description

Sets the chapter’s image and records the result in its history.