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.
pub async fn is_open(
conn: &mut PgConnection,
chapter_id: Uuid,
) -> ModelResult<bool>
Checks the opens_at field for the chapter and compares it to the current time. If null, the chapter is always open.