Remove unused DB_TYPE configuration variable

This commit is contained in:
2025-11-26 17:49:08 +01:00
parent a71c5a6d76
commit 0019a4a095
3 changed files with 2 additions and 9 deletions
-5
View File
@@ -8,7 +8,6 @@ import (
)
type Config struct {
DBType string
DBPath string
Port string
Host string
@@ -23,7 +22,6 @@ func Load() (*Config, error) {
godotenv.Load()
cfg := &Config{
DBType: os.Getenv("DB_TYPE"),
DBPath: os.Getenv("DB_PATH"),
Port: getEnvOrDefault("PORT", "8080"),
Host: getEnvOrDefault("HOST", "0.0.0.0"),
@@ -34,9 +32,6 @@ func Load() (*Config, error) {
DefaultTimezone: os.Getenv("DEFAULT_TIMEZONE"),
}
if cfg.DBType == "" {
return nil, fmt.Errorf("DB_TYPE is required")
}
if cfg.DBPath == "" {
return nil, fmt.Errorf("DB_PATH is required")
}