Return the new alert channel's id

This commit is contained in:
Veillax committed 2026-10-27 16:54:50 -06:00
1 parent 8f3d303d7b
commit 617742e2b8
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ func (s *Server) saveChannel(w http.ResponseWriter, r *http.Request, sc alertSco
}
s.save()
s.audit(sc.org, sc.actor, "alert.channel.save", in.Name)
ok(w)
writeJSON(w, 200, map[string]any{"ok": true, "id": in.ID})
}
func (s *Server) deleteChannel(w http.ResponseWriter, r *http.Request, sc alertScope) {