Ver Fonte

switcheroo (#4246)

d-g-town há 2 anos atrás
pai
commit
b6826c6890
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      internal/models/notification.go

+ 2 - 2
internal/models/notification.go

@@ -18,8 +18,8 @@ type NotificationConfig struct {
 	LastNotifiedTime time.Time
 	NotifLimit       string
 
-	// Config is a JSONB column that stores arbitrary notification config
-	Config JSONB `json:"config" sql:"type:jsonb" gorm:"type:jsonb;default:'{}'"`
+	// Base64Config is a base64-encoded column that stores notification config in protobuf format
+	Base64Config string `json:"base64_config" gorm:"default:''"`
 }
 
 func (conf *NotificationConfig) ToNotificationConfigType() *types.NotificationConfig {