@@ -52,12 +52,14 @@ func (s *WebhookDataStatus) UnmarshalText(text []byte) error {
|
||||
}
|
||||
|
||||
func (s *WebhookDataStatus) Scan(value any) error {
|
||||
str, ok := value.(string)
|
||||
if !ok {
|
||||
switch v := value.(type) {
|
||||
case string:
|
||||
return s.UnmarshalText([]byte(v))
|
||||
case []byte:
|
||||
return s.UnmarshalText(v)
|
||||
default:
|
||||
return fmt.Errorf("unsupported type for WebhookDataStatus: %T", value)
|
||||
}
|
||||
|
||||
return s.UnmarshalText([]byte(str))
|
||||
}
|
||||
|
||||
func (s WebhookDataStatus) Value() (driver.Value, error) {
|
||||
|
||||
@@ -51,12 +51,14 @@ func (s *WebhookEventStatus) UnmarshalText(text []byte) error {
|
||||
}
|
||||
|
||||
func (s *WebhookEventStatus) Scan(value any) error {
|
||||
str, ok := value.(string)
|
||||
if !ok {
|
||||
switch v := value.(type) {
|
||||
case string:
|
||||
return s.UnmarshalText([]byte(v))
|
||||
case []byte:
|
||||
return s.UnmarshalText(v)
|
||||
default:
|
||||
return fmt.Errorf("unsupported type for WebhookEventStatus: %T", value)
|
||||
}
|
||||
|
||||
return s.UnmarshalText([]byte(str))
|
||||
}
|
||||
|
||||
func (s WebhookEventStatus) Value() (driver.Value, error) {
|
||||
|
||||
@@ -197,7 +197,6 @@ func (s *Sender) deliverToConfiguration(
|
||||
s.logger.ErrorCtx(ctx, "error delivering webhook",
|
||||
log.Error(sendErr),
|
||||
log.String("webhook_data_id", webhookData.ID.String()),
|
||||
log.String("endpoint_url", config.EndpointURL),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user