mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 20:50:06 +00:00
add alert api (#458)
This commit is contained in:
@@ -75,11 +75,6 @@ func (ma *memberAPI) delete(c *gin.Context) {
|
||||
}
|
||||
delete(singleton.Crons, id)
|
||||
}
|
||||
case "alert-rule":
|
||||
err = singleton.DB.Unscoped().Delete(&model.AlertRule{}, "id = ?", id).Error
|
||||
if err == nil {
|
||||
singleton.OnDeleteAlert(id)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
c.JSON(http.StatusOK, model.Response{
|
||||
|
||||
Reference in New Issue
Block a user