Add tenant to activity table, include resource type

This commit is contained in:
Jon Staab
2026-03-26 08:17:40 -07:00
parent 28e564e795
commit b796665e31
7 changed files with 63 additions and 48 deletions
+7 -5
View File
@@ -48,11 +48,13 @@ impl Infra {
let activity = self.repo.list_activity(&since, None).await?;
for a in activity {
if matches!(
a.activity_type.as_str(),
"create_relay" | "update_relay" | "deactivate_relay"
) {
let Some(relay) = self.repo.get_relay(&a.identifier).await? else {
if a.resource_type == "relay"
&& matches!(
a.activity_type.as_str(),
"create_relay" | "update_relay" | "deactivate_relay"
)
{
let Some(relay) = self.repo.get_relay(&a.resource_id).await? else {
continue;
};