A bit of cleanup

pull/3120/head
Luke Morris 2018-04-03 18:01:57 -07:00
parent 5d5b77b50b
commit d76a937e09
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ func (c *Client) migrate(ctx context.Context, build chronograf.BuildInfo) error
if err := c.LayoutsStore.Migrate(ctx); err != nil {
return err
}
if err := c.DashboardsStore.Migrate(ctx, build); err != nil {
if err := c.DashboardsStore.Migrate(ctx); err != nil {
return err
}
if err := c.ConfigStore.Migrate(ctx); err != nil {

View File

@ -48,7 +48,7 @@ func (d *DashboardsStore) AddIDs(ctx context.Context, boards []chronograf.Dashbo
}
// Migrate updates the dashboards at runtime
func (d *DashboardsStore) Migrate(ctx context.Context, build chronograf.BuildInfo) error {
func (d *DashboardsStore) Migrate(ctx context.Context) error {
// 1. Add UUIDs to cells without one
boards, err := d.All(ctx)
if err != nil {