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(sfs): pass file_id instead of s3 key to mark_uploaded (#2738)
Eric Hayes22813f844117
diff --git a/rust/cloud-storage/static_file_service/src/api/event/s3_create.rs b/rust/cloud-storage/static_file_service/src/api/event/s3_create.rsindex 186443b687..ffba3f8e8e 100644--- a/rust/cloud-storage/static_file_service/src/api/event/s3_create.rs+++ b/rust/cloud-storage/static_file_service/src/api/event/s3_create.rs@@ -4,8 +4,15 @@ use anyhow::{Context, Result};#[tracing::instrument(skip(metadata_client))]pub async fn handle_s3_create(event: S3EventRecord, metadata_client: DynamodbClient) -> Result<()> {+ let file_id = s3_key::StaticFileKey::from_s3_key(&event.s3.object.key)+ .inspect_err(+ |err| tracing::error!(error=?err, key=%event.s3.object.key, "unexpected s3 key format"),+ )+ .context("failed to parse file_id from s3 key")?+ .file_id;+metadata_client- .mark_uploaded(event.s3.object.key.as_str())+ .mark_uploaded(&file_id).await- .context("could not not mark file uploaded")+ .context("could not mark file uploaded")}