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(email-service): Notify for new messages after attachment upload (#608)
Evan Hutnik683b127c6dc6
diff --git a/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs b/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rsindex 62f85f26c7..978a6b6288 100644--- a/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs+++ b/rust/cloud-storage/email_service/src/pubsub/webhook/operations/upsert_message.rs@@ -149,17 +149,6 @@ pub async fn upsert_message(})?;}- // trigger FE inbox refresh- cg_refresh_email(- &ctx.connection_gateway_client,- link.macro_id.as_ref(),- "upsert_message",- )- .await;-- // notify downstream services of new messages- notify_for_new_messages(ctx, link, new_message_provider_ids).await?;-handle_attachment_upload(ctx,&gmail_access_token,@@ -178,6 +167,17 @@ pub async fn upsert_message().await?;+ // trigger FE inbox refresh+ cg_refresh_email(+ &ctx.connection_gateway_client,+ link.macro_id.as_ref(),+ "upsert_message",+ )+ .await;++ // notify downstream services of new messages+ notify_for_new_messages(ctx, link, new_message_provider_ids).await?;+Ok(())}