Skip to main content

expire_old_codes

Function expire_old_codes 

Source
pub async fn expire_old_codes(pool: &SqlitePool) -> Result<u64>
Expand description

Sweep: flip every active code whose expires_at is in the past to expired. Returns the number of codes expired. Called periodically by the scheduler.