From 25f7cee1c241c50f51fa90665bdb42e16584e150 Mon Sep 17 00:00:00 2001 From: Idhibhat Pankam Date: Wed, 17 Jan 2024 00:24:52 +0700 Subject: [PATCH] fix: config --- src/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.go b/src/config/config.go index 9992687..21b613d 100644 --- a/src/config/config.go +++ b/src/config/config.go @@ -36,7 +36,7 @@ func LoadConfig() (*Config, error) { appCfgLdr := viper.New() appCfgLdr.SetEnvPrefix("APP") appCfgLdr.AutomaticEnv() - dbCfgLdr.AllowEmptyEnv(false) + appCfgLdr.AllowEmptyEnv(false) appConfig := App{} if err := appCfgLdr.Unmarshal(&appConfig); err != nil { return nil, err @@ -45,7 +45,7 @@ func LoadConfig() (*Config, error) { serviceCfgLdr := viper.New() serviceCfgLdr.SetEnvPrefix("SERVICE") serviceCfgLdr.AutomaticEnv() - dbCfgLdr.AllowEmptyEnv(false) + serviceCfgLdr.AllowEmptyEnv(false) serviceConfig := Service{} if err := serviceCfgLdr.Unmarshal(&serviceConfig); err != nil { return nil, err