pub async fn get_by_user_and_chapter(
conn: &mut PgConnection,
user_id: Uuid,
chapter_id: Uuid,
course_id: Option<Uuid>,
course_locking_enabled: Option<bool>,
) -> ModelResult<Option<UserChapterLockingStatus>>pub async fn get_by_user_and_chapter(
conn: &mut PgConnection,
user_id: Uuid,
chapter_id: Uuid,
course_id: Option<Uuid>,
course_locking_enabled: Option<bool>,
) -> ModelResult<Option<UserChapterLockingStatus>>