Skip to content

Commit

Permalink
fix Yuce's PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Nov 3, 2023
1 parent 262b526 commit 9a153d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/commands/migration/migration_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ func createMigrationStages(ctx context.Context, ec plug.ExecContext, ci *hazelca
rt, cp, err := fetchOverallProgress(ctx, ci, migrationID)
if err != nil {
ec.Logger().Error(err)
status.SetText("Unable to calculate remaining duration and progress")
} else {
status.SetProgress(cp)
status.SetRemainingDuration(rt)
}
status.SetProgress(cp)
status.SetRemainingDuration(rt)
}
q := fmt.Sprintf(`SELECT JSON_QUERY(this, '$.migrations[%d]') FROM %s WHERE __key= '%s'`, i, StatusMapName, migrationID)
res, err := ci.Client().SQL().Execute(ctx, q)
Expand Down

0 comments on commit 9a153d5

Please sign in to comment.