Remove status on webhook data
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -22,8 +22,9 @@ import (
|
||||
type WebhookEventStatus string
|
||||
|
||||
const (
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
WebhookEventStatusPending WebhookEventStatus = "PENDING"
|
||||
WebhookEventStatusSucceeded WebhookEventStatus = "SUCCEEDED"
|
||||
WebhookEventStatusFailed WebhookEventStatus = "FAILED"
|
||||
)
|
||||
|
||||
func (s WebhookEventStatus) String() string {
|
||||
@@ -32,7 +33,7 @@ func (s WebhookEventStatus) String() string {
|
||||
|
||||
func (s WebhookEventStatus) IsValid() bool {
|
||||
switch s {
|
||||
case WebhookEventStatusSucceeded, WebhookEventStatusFailed:
|
||||
case WebhookEventStatusPending, WebhookEventStatusSucceeded, WebhookEventStatusFailed:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user