Skip to main content

claim_linking_mails_batch

Function claim_linking_mails_batch 

Source
pub async fn claim_linking_mails_batch(
    conn: &mut PgConnection,
    people: &[DiscoveredPerson],
) -> ModelResult<Vec<LinkingMailClaim>>
Expand description

Claims one slot and one unbound token per person whose address has no usable link from us yet, dedup before the rate caps. Returns one claim per input, in order.