mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-14 02:12:42 +00:00
Fix: Store metricID in newly created metric
This commit is contained in:
parent
5773189317
commit
20d26087c5
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -130,6 +130,7 @@ func main() {
|
||||||
|
|
||||||
if !updated {
|
if !updated {
|
||||||
tmp := NewDashboardMetric()
|
tmp := NewDashboardMetric()
|
||||||
|
tmp.MetricID = params["metricid"]
|
||||||
tmp.Update(metricUpdate)
|
tmp.Update(metricUpdate)
|
||||||
dash.Metrics = append(dash.Metrics, tmp)
|
dash.Metrics = append(dash.Metrics, tmp)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue