diff --git a/bgs/fedmgr.go b/bgs/fedmgr.go index dae58e22e..f5fe9fc21 100644 --- a/bgs/fedmgr.go +++ b/bgs/fedmgr.go @@ -17,6 +17,7 @@ import ( "golang.org/x/time/rate" "github.com/gorilla/websocket" + pq "github.com/lib/pq" "gorm.io/gorm" ) @@ -182,7 +183,7 @@ type SlurpConfig struct { gorm.Model NewSubsDisabled bool - TrustedDomains []string + TrustedDomains pq.StringArray `gorm:"type:text[]"` } func (s *Slurper) SetNewSubsDisabled(dis bool) error { diff --git a/go.mod b/go.mod index 9ecb7ff9c..1266f4f13 100644 --- a/go.mod +++ b/go.mod @@ -38,6 +38,7 @@ require ( github.com/labstack/echo/v4 v4.11.1 github.com/labstack/gommon v0.4.0 github.com/lestrrat-go/jwx/v2 v2.0.12 + github.com/lib/pq v1.10.9 github.com/minio/sha256-simd v1.0.0 github.com/mitchellh/go-homedir v1.1.0 github.com/mr-tron/base58 v1.2.0 diff --git a/go.sum b/go.sum index b2aaa467c..60b4d3b72 100644 --- a/go.sum +++ b/go.sum @@ -405,6 +405,8 @@ github.com/lestrrat-go/jwx/v2 v2.0.12/go.mod h1:Mq4KN1mM7bp+5z/W5HS8aCNs5RKZ911G github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU= github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg=