Return the new alert channel's id
This commit is contained in:
1 parent
8f3d303d7b
commit
617742e2b8
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user