(configData string)
| 644 | } |
| 645 | |
| 646 | func alertConfigSMSPhone(configData string) string { |
| 647 | var cfg struct { |
| 648 | Phone string `json:"phone"` |
| 649 | } |
| 650 | if err := json.Unmarshal([]byte(configData), &cfg); err != nil { |
| 651 | return "" |
| 652 | } |
| 653 | return strings.TrimSpace(cfg.Phone) |
| 654 | } |
| 655 | |
| 656 | func (a AlertService) DeleteAlertConfig(id uint) error { |
| 657 | _, err := alertRepo.GetConfigById(id) |
no outgoing calls
no test coverage detected