diff --git a/pkg/database/init.go b/pkg/database/init.go index 83e0939..627a470 100644 --- a/pkg/database/init.go +++ b/pkg/database/init.go @@ -18,7 +18,7 @@ func InitDatabase(opt *DBOption) (*gorm.DB, error) { func InitDefaultDatabase() (*gorm.DB, error) { path := os.Getenv(ConfigPathEnvKey) - if path != "" { + if path == "" { path = DefaultConfigPath } cfg, err := LoadDBConfig(path)