headless_lms_server::programs::mailchimp_syncer

Function send_users_to_mailchimp

Source
pub async fn send_users_to_mailchimp(
    conn: &mut PgConnection,
    token: MarketingMailingListAccessToken,
    users_details: Vec<UserMarketingConsentWithDetails>,
    tag_objects: Vec<Value>,
) -> Result<Vec<Uuid>>
Expand description

Sends a batch of users to Mailchimp for synchronization.