Remove redundant queries in GetAlertRules and GetOrgAlertRules and replace with ListAlertRules (#48108)
This commit is contained in:
@@ -76,7 +76,7 @@ func (st *Manager) Warm(ctx context.Context) {
|
||||
ruleCmd := ngModels.ListAlertRulesQuery{
|
||||
OrgID: orgId,
|
||||
}
|
||||
if err := st.ruleStore.GetOrgAlertRules(ctx, &ruleCmd); err != nil {
|
||||
if err := st.ruleStore.ListAlertRules(ctx, &ruleCmd); err != nil {
|
||||
st.log.Error("unable to fetch previous state", "msg", err.Error())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user