@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user