Function headless_lms_models::chapters::is_open
source · pub async fn is_open(
conn: &mut PgConnection,
chapter_id: Uuid
) -> ModelResult<bool>
Expand description
Checks the opens_at field for the chapter and compares it to the current time. If null, the chapter is always open.