Skip to main content

save_edit

Function save_edit 

Source
async fn save_edit(
    conn: &mut PgConnection,
    chapter_id: Uuid,
    author_user_id: Uuid,
    edit: impl FnOnce(ChapterSnapshot) -> ChapterSnapshot,
) -> ModelResult<DatabaseChapter>
Expand description

Writes the change edit makes to the chapter’s snapshot and records the result in its history.