diff --git a/pkg/api/dtos/models.go b/pkg/api/dtos/models.go index a63a45d6695..a7ff9353fa9 100644 --- a/pkg/api/dtos/models.go +++ b/pkg/api/dtos/models.go @@ -41,7 +41,6 @@ type DashboardMeta struct { Expires time.Time `json:"expires"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` - CreatedBy string `json:"createdBy"` UpdatedBy string `json:"updatedBy"` } diff --git a/pkg/models/dashboards.go b/pkg/models/dashboards.go index 32922213a6a..ddf5dd244f5 100644 --- a/pkg/models/dashboards.go +++ b/pkg/models/dashboards.go @@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard { func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard { dash := NewDashboardFromJson(cmd.Dashboard) dash.OrgId = cmd.OrgId - dash.UpdatedBy = cmd.UpdatedBy + dash.UpdatedBy = cmd.UpdatedBy dash.UpdateSlug() return dash } @@ -116,7 +116,7 @@ type SaveDashboardCommand struct { Dashboard map[string]interface{} `json:"dashboard" binding:"Required"` Overwrite bool `json:"overwrite"` OrgId int64 `json:"-"` - UpdatedBy int64 `json:"-"` + UpdatedBy int64 `json:"-"` Result *Dashboard }