Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: set PrincipalType for webhook mention users in approval events (#18918)

Danny Xu2e21499906eb
diff --git a/backend/component/webhook/manager.go b/backend/component/webhook/manager.go
index 047d95d65e..a31ae24a79 100644
--- a/backend/component/webhook/manager.go
+++ b/backend/component/webhook/manager.go
@@ -104,6 +104,7 @@ func (m *Manager) getWebhookContextFromEvent(ctx context.Context, e *Event, even
mentionUsers = append(mentionUsers, &store.UserMessage{
Name: user.Name,
Email: user.Email,
+ Type: storepb.PrincipalType_END_USER,
})
}
}
@@ -121,6 +122,7 @@ func (m *Manager) getWebhookContextFromEvent(ctx context.Context, e *Event, even
{
Name: e.SentBack.Creator.Name,
Email: e.SentBack.Creator.Email,
+ Type: storepb.PrincipalType_END_USER,
},
}
}