pub async fn soft_delete_expired(
conn: &mut PgConnection,
limit: i64,
) -> ModelResult<u64>Expand description
Retires tokens whose link has expired unused, oldest first.
Soft delete, not a delete: credit_registration_account_linking_emails references these rows,
and the dedup ledger has to keep saying which token a mail carried.