headless_lms_models::marketing_consents

Function fetch_all_unsynced_updated_emails

Source
pub async fn fetch_all_unsynced_updated_emails(
    conn: &mut PgConnection,
    course_language_group_id: Uuid,
) -> Result<Vec<UserEmailSubscription>>
Expand description

Fetches email, email subscription status and user ID for users whose details have been updated after their marketing consent was last synced to Mailchimp