fix: add AppState import and type annotation in marketing/email.rs
Some checks failed
BotServer CI/CD / build (push) Failing after 5m43s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-04 22:27:08 -03:00
parent f5082acac0
commit 71b39a8cdd

View file

@ -9,6 +9,8 @@ use serde::{Deserialize, Serialize};
use std::sync::Arc; use std::sync::Arc;
use uuid::Uuid; use uuid::Uuid;
use crate::core::shared::state::AppState;
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EmailCampaignPayload { pub struct EmailCampaignPayload {
pub to: String, pub to: String,
@ -254,7 +256,7 @@ pub async fn send_bulk_campaign_emails(
.map(String::from); .map(String::from);
for (contact_id, email, name) in contacts { 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) html.replace("{{name}}", &name)
.replace("{{email}}", &email) .replace("{{email}}", &email)
}); });