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.

add logging (#2483)

Sean Aye843c763c9e06
diff --git a/rust/cloud-storage/invite_email/src/lib.rs b/rust/cloud-storage/invite_email/src/lib.rs
index 4daf29bc82..c4dd242a3f 100644
--- a/rust/cloud-storage/invite_email/src/lib.rs
+++ b/rust/cloud-storage/invite_email/src/lib.rs
@@ -190,6 +190,7 @@ impl NotificationExtEmail for ChannelInviteMetadata {
fn rate_limit_key(&self) -> RateLimitKey {
RateLimitKey::builder(&Self::TYPE_NAME)
.append(&self.invited_by)
+ .append(&self.channel_name)
.finish()
}
}
diff --git a/rust/cloud-storage/notification/src/outbound/repository.rs b/rust/cloud-storage/notification/src/outbound/repository.rs
index fa3db914e6..0cbfe977a2 100644
--- a/rust/cloud-storage/notification/src/outbound/repository.rs
+++ b/rust/cloud-storage/notification/src/outbound/repository.rs
@@ -517,6 +517,7 @@ impl NotificationDbOps for PgPool {
|row| -> Result<UserNotificationRow<T>, rootcause::Report<Uuid>> {
let entity = EntityType::from_str(&row.event_item_type)
.map_err(|e| rootcause::report!(e))
+ .attach(row.event_item_type)
.context(row.notification_id)?
.with_entity_string(row.event_item_id);