Skip to content

Commit

Permalink
#830 custom template bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Oct 16, 2024
1 parent 0afd3ef commit 0b8b440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor-server/services/db/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ func getMetricComparisonDeleteAction(sourceMetricGuid string) (actions []*Action

func GetLogType(metric string) (logType string, err error) {
var result []string
err = x.SQL("select log_type from log_metric_group where id in (select log_metric_group from metric where metric = ?)", metric).Find(&result)
err = x.SQL("select log_type from log_metric_group where guid in (select log_metric_group from metric where metric = ?)", metric).Find(&result)
if len(result) > 0 {
logType = result[0]
}
Expand Down

0 comments on commit 0b8b440

Please sign in to comment.