|
@@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
|
|
|
func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard {
|
|
func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard {
|
|
|
dash := NewDashboardFromJson(cmd.Dashboard)
|
|
dash := NewDashboardFromJson(cmd.Dashboard)
|
|
|
dash.OrgId = cmd.OrgId
|
|
dash.OrgId = cmd.OrgId
|
|
|
- dash.UpdatedBy = cmd.UpdatedBy
|
|
|
|
|
|
|
+ dash.UpdatedBy = cmd.UpdatedBy
|
|
|
dash.UpdateSlug()
|
|
dash.UpdateSlug()
|
|
|
return dash
|
|
return dash
|
|
|
}
|
|
}
|
|
@@ -116,7 +116,7 @@ type SaveDashboardCommand struct {
|
|
|
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
|
|
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
|
|
|
Overwrite bool `json:"overwrite"`
|
|
Overwrite bool `json:"overwrite"`
|
|
|
OrgId int64 `json:"-"`
|
|
OrgId int64 `json:"-"`
|
|
|
- UpdatedBy int64 `json:"-"`
|
|
|
|
|
|
|
+ UpdatedBy int64 `json:"-"`
|
|
|
|
|
|
|
|
Result *Dashboard
|
|
Result *Dashboard
|
|
|
}
|
|
}
|