From 71b39a8cdd828865e43bb41e54fbcae5502c5184 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sat, 4 Apr 2026 22:27:08 -0300 Subject: [PATCH] fix: add AppState import and type annotation in marketing/email.rs --- src/marketing/email.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/marketing/email.rs b/src/marketing/email.rs index 60b7172f..339da320 100644 --- a/src/marketing/email.rs +++ b/src/marketing/email.rs @@ -9,6 +9,8 @@ use serde::{Deserialize, Serialize}; use std::sync::Arc; use uuid::Uuid; +use crate::core::shared::state::AppState; + #[derive(Debug, Clone, Serialize, Deserialize)] pub struct EmailCampaignPayload { pub to: String, @@ -254,7 +256,7 @@ pub async fn send_bulk_campaign_emails( .map(String::from); for (contact_id, email, name) in contacts { - let personalized_body = body_html.as_ref().map(|html| { + let personalized_body = body_html.as_ref().map(|html: &String| { html.replace("{{name}}", &name) .replace("{{email}}", &email) });