Skip to content

Commit cb5c1bd

Browse files
committed
Removed created_by and fixed gofmt
1 parent af37124 commit cb5c1bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/api/dtos/models.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ type DashboardMeta struct {
4141
Expires time.Time `json:"expires"`
4242
Created time.Time `json:"created"`
4343
Updated time.Time `json:"updated"`
44-
CreatedBy string `json:"createdBy"`
4544
UpdatedBy string `json:"updatedBy"`
4645
}
4746

pkg/models/dashboards.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard {
9292
func (cmd *SaveDashboardCommand) GetDashboardModel() *Dashboard {
9393
dash := NewDashboardFromJson(cmd.Dashboard)
9494
dash.OrgId = cmd.OrgId
95-
dash.UpdatedBy = cmd.UpdatedBy
95+
dash.UpdatedBy = cmd.UpdatedBy
9696
dash.UpdateSlug()
9797
return dash
9898
}
@@ -116,7 +116,7 @@ type SaveDashboardCommand struct {
116116
Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
117117
Overwrite bool `json:"overwrite"`
118118
OrgId int64 `json:"-"`
119-
UpdatedBy int64 `json:"-"`
119+
UpdatedBy int64 `json:"-"`
120120

121121
Result *Dashboard
122122
}

0 commit comments

Comments
 (0)