Skip to content

Commit fb288d0

Browse files
fix: incorrect datetime value: '0000-00-00' for column latest_updated… (#6541) (#6542)
* fix: incorrect datetime value: '0000-00-00' for column latest_updated_date * fix: remove some code Co-authored-by: abeizn <zikuan.an@merico.dev>
1 parent fefc4fb commit fb288d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/plugins/github_graphql/tasks/deployment_collector_extractor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ func convertGithubDeployment(deployment GraphqlQueryDeploymentDeployment, connec
171171
CreatedDate: deployment.CreatedAt,
172172
UpdatedDate: deployment.UpdatedAt,
173173
LatestStatusState: deployment.LatestStatus.State,
174-
LatestUpdatedDate: deployment.LatestStatus.UpdatedAt,
174+
}
175+
if !deployment.LatestStatus.UpdatedAt.IsZero() {
176+
ret.LatestUpdatedDate = deployment.LatestStatus.UpdatedAt
175177
}
176178
if deployment.Ref != nil {
177179
ret.RefName = deployment.Ref.Name

0 commit comments

Comments
 (0)