Commit cb5c1bd2 by utkarshcmu

Removed created_by and fixed gofmt

parent af371249
...@@ -41,7 +41,6 @@ type DashboardMeta struct { ...@@ -41,7 +41,6 @@ type DashboardMeta struct {
Expires time.Time `json:"expires"` Expires time.Time `json:"expires"`
Created time.Time `json:"created"` Created time.Time `json:"created"`
Updated time.Time `json:"updated"` Updated time.Time `json:"updated"`
CreatedBy string `json:"createdBy"`
UpdatedBy string `json:"updatedBy"` UpdatedBy string `json:"updatedBy"`
} }
......
...@@ -92,7 +92,7 @@ func NewDashboardFromJson(data map[string]interface{}) *Dashboard { ...@@ -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 { ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment