Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(notif): correct the sender address (#2001)
Sean Ayec0ab8ec1ef0c
diff --git a/rust/cloud-storage/notification_service/src/api/user_notification.rs b/rust/cloud-storage/notification_service/src/api/user_notification.rsindex 12129a1398..c40793e0da 100644--- a/rust/cloud-storage/notification_service/src/api/user_notification.rs+++ b/rust/cloud-storage/notification_service/src/api/user_notification.rs@@ -205,10 +205,10 @@ where} = self;fn filter_erors((uuid, err): (Uuid, serde_json::Error)) -> Option<Uuid> {- let output = err- .to_string()- .contains("channel_message_document")- .then_some(uuid);+ let err_str = err.to_string();+ let output = (err_str.contains("channel_message_document")+ || err_str.contains("missing field `toEmail`"))+ .then_some(uuid);if output.is_none() {tracing::warn!("{err:?}");diff --git a/rust/cloud-storage/notification_service/src/main.rs b/rust/cloud-storage/notification_service/src/main.rsindex 590496e9b7..5b68f63560 100644--- a/rust/cloud-storage/notification_service/src/main.rs+++ b/rust/cloud-storage/notification_service/src/main.rs@@ -160,7 +160,7 @@ pub async fn main() -> anyhow::Result<()> {);let ses_client = aws_sdk_sesv2::Client::new(&aws_config);- let email_adapter = EmailAdapter::new(ses_client, config.sender_base_address.clone());+ let email_adapter = EmailAdapter::new(ses_client, crate::env::SENDER_ADDRESS.clone());let redis_multiplexed_conn = redis_client.get_multiplexed_async_connection()