Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(email): Don't add contacts exceeding length of column (#1539)

Evan Hutnik66be1ed040e7
diff --git a/rust/cloud-storage/email_db_client/src/contacts/upsert_sync.rs b/rust/cloud-storage/email_db_client/src/contacts/upsert_sync.rs
index 59c18375e0..68568913a4 100644
--- a/rust/cloud-storage/email_db_client/src/contacts/upsert_sync.rs
+++ b/rust/cloud-storage/email_db_client/src/contacts/upsert_sync.rs
@@ -27,6 +27,7 @@ pub async fn upsert_contacts(pool: &PgPool, contacts: &[Contact]) -> anyhow::Res
for contact in db_contacts {
if let Some(email) = &contact.email_address
&& !email.trim().is_empty()
+ && email.len() < 310
{
ids.push(contact.id);
link_ids.push(contact.link_id);