diff --git a/monitor-server/services/db/metric.go b/monitor-server/services/db/metric.go index 2852ccd97..cda4f4554 100644 --- a/monitor-server/services/db/metric.go +++ b/monitor-server/services/db/metric.go @@ -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] }