Skip to content

Commit

Permalink
fix: startedDate and finishedDate should be required (#7553)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed May 31, 2024
1 parent 6c73930 commit afd1763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/plugins/webhook/api/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type WebhookDeploymentReq struct {
CreatedDate *time.Time `mapstructure:"createdDate"`
// QueuedDate *time.Time `mapstructure:"queue_time"`
StartedDate *time.Time `mapstructure:"startedDate" validate:"required"`
FinishedDate *time.Time `mapstructure:"finishedDate"`
FinishedDate *time.Time `mapstructure:"finishedDate" validate:"required"`
}

type WebhookDeploymentCommitReq struct {
Expand All @@ -65,7 +65,7 @@ type WebhookDeploymentCommitReq struct {
CreatedDate *time.Time `mapstructure:"createdDate"`
// QueuedDate *time.Time `mapstructure:"queue_time"`
StartedDate *time.Time `mapstructure:"startedDate" validate:"required"`
FinishedDate *time.Time `mapstructure:"finishedDate"`
FinishedDate *time.Time `mapstructure:"finishedDate" validate:"required"`
}

// PostDeployments
Expand Down

0 comments on commit afd1763

Please sign in to comment.