pub async fn count_active_codes(pool: &SqlitePool) -> Result<i64>Expand description
Count active, unexpired invite codes — the outstanding-but-unredeemed seats
a bot has already promised. Added to count_beta_access this is the “seats
committed” figure the bot mint path (POST /bot/claims) checks against the
cap, so it doesn’t over-promise more claims than seats remain (the redeem-time
cap in redeem_code is the hard backstop; this avoids telling a follower
“you’re in” for a seat that will be full by the time they claim it).