diff options
author | 2021-03-03 18:12:02 +0100 | |
---|---|---|
committer | 2021-03-03 18:12:02 +0100 | |
commit | 54c4b8de203e023b63bffb65b40b9f15d1b4b102 (patch) | |
tree | fbf78a5f84c9149023d09681fee7085925f383cc /internal/db/postgres.go | |
parent | start the service using a cli (diff) | |
download | gotosocial-54c4b8de203e023b63bffb65b40b9f15d1b4b102.tar.xz |
further yak shaving
Diffstat (limited to 'internal/db/postgres.go')
-rw-r--r-- | internal/db/postgres.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/postgres.go b/internal/db/postgres.go index f4cf47406..14c8d3d7b 100644 --- a/internal/db/postgres.go +++ b/internal/db/postgres.go @@ -23,6 +23,7 @@ import ( "errors" "fmt" "net/url" + "strings" "time" "github.com/go-fed/activity/streams/vocab" @@ -95,7 +96,7 @@ func newPostgresService(ctx context.Context, config *Config, log *logrus.Entry) // derivePGOptions takes an application config and returns either a ready-to-use *pg.Options // with sensible defaults, or an error if it's not satisfied by the provided config. func derivePGOptions(config *Config) (*pg.Options, error) { - if config.Type != dbTypePostgres { + if strings.ToUpper(config.Type) != dbTypePostgres { return nil, fmt.Errorf("expected db type of %s but got %s", dbTypePostgres, config.Type) } |