fix: update notification messages for various handlers to improve clarity and consistency

This commit is contained in:
GitHub Actions
2026-03-07 05:16:07 +00:00
parent 82e2134333
commit ca3c1085ac
6 changed files with 8 additions and 11 deletions

View File

@@ -404,7 +404,7 @@ func (h *ProxyHostHandler) Create(c *gin.Context) {
h.notificationService.SendExternal(c.Request.Context(),
"proxy_host",
"Proxy Host Created",
fmt.Sprintf("Proxy Host %s (%s) created", util.SanitizeForLog(host.Name), util.SanitizeForLog(host.DomainNames)),
"A new proxy host was successfully created.",
map[string]any{
"Name": util.SanitizeForLog(host.Name),
"Domains": util.SanitizeForLog(host.DomainNames),
@@ -679,7 +679,7 @@ func (h *ProxyHostHandler) Delete(c *gin.Context) {
h.notificationService.SendExternal(c.Request.Context(),
"proxy_host",
"Proxy Host Deleted",
fmt.Sprintf("Proxy Host %s deleted", host.Name),
"A proxy host was successfully deleted.",
map[string]any{
"Name": host.Name,
"Action": "deleted",