(alertRepo repo.IAlertRepo, alert dto.AlertDTO, pushAlert dto.PushAlert, configId uint)
| 40 | } |
| 41 | |
| 42 | func pushByConfigId(alertRepo repo.IAlertRepo, alert dto.AlertDTO, pushAlert dto.PushAlert, configId uint) { |
| 43 | config, err := alertRepo.GetConfigById(configId) |
| 44 | if err != nil { |
| 45 | global.LOG.Errorf("alert config not found for id %d: %v", configId, err) |
| 46 | return |
| 47 | } |
| 48 | sendAlert(alertRepo, alert, pushAlert, config) |
| 49 | } |
| 50 | |
| 51 | func pushByLegacyMethod(alertRepo repo.IAlertRepo, alert dto.AlertDTO, pushAlert dto.PushAlert, method string) { |
| 52 | typeMap := map[string]string{ |
no test coverage detected