mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-22 20:11:18 +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 {
|
||||
tmp := NewDashboardMetric()
|
||||
tmp.MetricID = params["metricid"]
|
||||
tmp.Update(metricUpdate)
|
||||
dash.Metrics = append(dash.Metrics, tmp)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue