Commit ca01604b by utkarshcmu

Added statements in constructor

parent 93f9a0c3
......@@ -43,6 +43,8 @@ func NewDashboard(title string) *Dashboard {
dash.Data = make(map[string]interface{})
dash.Data["title"] = title
dash.Title = title
dash.Created = time.Now()
dash.Updated = time.Now()
dash.UpdateSlug()
return dash
}
......
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