From c39c9e7e4b863e894747441cb3c7da4b64023870 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 31 May 2024 13:19:37 +0800 Subject: [PATCH] fix: startedDate and finishedDate should be required --- backend/plugins/webhook/api/deployments.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/plugins/webhook/api/deployments.go b/backend/plugins/webhook/api/deployments.go index 005186004ad..c4c292956ea 100644 --- a/backend/plugins/webhook/api/deployments.go +++ b/backend/plugins/webhook/api/deployments.go @@ -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 { @@ -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