1
0
Fork 0
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:
Knut Ahlers 2015-02-08 08:58:41 +01:00
parent 5773189317
commit 20d26087c5

View file

@ -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)
} }