headless_lms_models::marketing_consents

Function fetch_user_marketing_consent

Source
pub async fn fetch_user_marketing_consent(
    conn: &mut PgConnection,
    course_id: Uuid,
    user_id: &Uuid,
) -> Result<UserMarketingConsent>