* Fix fetch metric by code without filter deleted.

This commit is contained in:
qixinzhi
2024-03-27 17:23:12 +08:00
committed by liyang
parent 521ec5731b
commit fc63aa7cd9
+1 -2
View File
@@ -124,8 +124,7 @@ class metricTao extends metricModel
protected function fetchMetricByCode(string $code): object|false
{
return $this->dao->select('*')->from(TABLE_METRIC)
->where('deleted')->eq('0')
->andWhere('code')->eq($code)
->where('code')->eq($code)
->fetch();
}