From ea67ad9d6882bcb0f98d89b5dc95a0397289998a Mon Sep 17 00:00:00 2001 From: Alex Goth Date: Thu, 7 Nov 2024 17:29:40 +0100 Subject: [PATCH] fix(env): add setdefault for postgres.url to parse env correctly --- app/config/postgres.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config/postgres.go b/app/config/postgres.go index afe837032..809476c6f 100644 --- a/app/config/postgres.go +++ b/app/config/postgres.go @@ -33,6 +33,7 @@ func (c PostgresConfig) Validate() error { } func ConfigurePostgres(v *viper.Viper) { + v.SetDefault("postgres.url", "") v.SetDefault("postgres.autoMigrate", "ent") }