Skip to content

Commit 430483f

Browse files
committed
Update with latest updates in circleci plugin for createdAt
1 parent de29e4a commit 430483f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/plugins/circleci/tasks/workflow_converter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ func ConvertWorkflows(taskCtx plugin.SubTaskContext) errors.Error {
6060
Input: cursor,
6161
Convert: func(inputRow interface{}) ([]interface{}, errors.Error) {
6262
userTool := inputRow.(*models.CircleciWorkflow)
63-
// Skip if CreatedDate is null or empty string - still enters into the `_tool_circleci_workflows` table with null values
64-
if userTool.CreatedDate.ToNullableTime() == nil {
65-
logger.Info("CreatedDate is null or empty string in the CircleCI API response for %s", userTool.PipelineId)
63+
// Skip if CreatedAt is null or empty string - still enters into the `_tool_circleci_workflows` table with null values
64+
if userTool.CreatedAt.ToNullableTime() == nil {
65+
logger.Info("CreatedAt is null or empty string in the CircleCI API response for %s", userTool.PipelineId)
6666
return []interface{}{}, nil
6767
}
68-
createdAt := userTool.CreatedDate.ToTime()
68+
createdAt := userTool.CreatedAt.ToTime()
6969
pipeline := &devops.CICDPipeline{
7070
DomainEntity: domainlayer.DomainEntity{
7171
Id: getWorkflowIdGen().Generate(data.Options.ConnectionId, userTool.Id),

0 commit comments

Comments
 (0)