Commit 5559ad12 by utkarshcmu

Return correct updated+created timestamps to frontend

parent 396f53d2
......@@ -57,6 +57,8 @@ func GetDashboard(c *middleware.Context) {
CanStar: c.IsSignedIn,
CanSave: c.OrgRole == m.ROLE_ADMIN || c.OrgRole == m.ROLE_EDITOR,
CanEdit: canEditDashboard(c.OrgRole),
Created: dash.Created,
Updated: dash.Updated,
},
}
......
......@@ -40,6 +40,7 @@ type DashboardMeta struct {
Slug string `json:"slug"`
Expires time.Time `json:"expires"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
}
type DashboardFullWithMeta struct {
......
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