Skip to content

Commit

Permalink
Migrate reports to OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
spinillos committed Dec 15, 2023
1 parent d36e160 commit abc2ded
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/resources/grafana/resource_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ func schemaToReport(d *schema.ResourceData) (models.CreateOrUpdateConfigCmd, err
if err != nil {
return models.CreateOrUpdateConfigCmd{}, err
}

date := strfmt.DateTime(startDate.UTC())
report.Schedule.StartDate = &date
}
Expand All @@ -424,6 +425,7 @@ func schemaToReport(d *schema.ResourceData) (models.CreateOrUpdateConfigCmd, err
if err != nil {
return models.CreateOrUpdateConfigCmd{}, err
}

date := strfmt.DateTime(endDate.UTC())
report.Schedule.EndDate = &date
}
Expand Down

0 comments on commit abc2ded

Please sign in to comment.