bugfix
This commit is contained in:
parent
270d3b7e5b
commit
79401183ca
|
@ -292,7 +292,7 @@ func AlertRuleGetById(id int64) (*AlertRule, error) {
|
||||||
|
|
||||||
func AlertRuleGetName(id int64) (string, error) {
|
func AlertRuleGetName(id int64) (string, error) {
|
||||||
var names []string
|
var names []string
|
||||||
err := DB().Where("id = ?", id).Pluck("name", &names).Error
|
err := DB().Model(new(AlertRule)).Where("id = ?", id).Pluck("name", &names).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue