pub async fn set_chapter_status(
conn: &mut PgConnection,
user_id: Uuid,
chapter_id: Uuid,
course_id: Uuid,
status: ChapterLockingStatus,
) -> ModelResult<UserChapterLockingStatus>pub async fn set_chapter_status(
conn: &mut PgConnection,
user_id: Uuid,
chapter_id: Uuid,
course_id: Uuid,
status: ChapterLockingStatus,
) -> ModelResult<UserChapterLockingStatus>