dashboards as cfg: read first cfg version

This commit is contained in:
bergquist
2017-11-23 11:29:06 +01:00
parent a62ebb3e59
commit d69b63cbc0
19 changed files with 1075 additions and 8 deletions

View File

@@ -81,6 +81,11 @@ func SaveDashboard(cmd *m.SaveDashboardCommand) error {
} else {
dash.Version += 1
dash.Data.Set("version", dash.Version)
if !cmd.UpdatedAt.IsZero() {
dash.Updated = cmd.UpdatedAt
}
affectedRows, err = sess.Id(dash.Id).Update(dash)
}