minor corrections

This commit is contained in:
Pedro Pérez 2025-03-17 15:27:13 +01:00
parent bbbb4a28d3
commit e0d263e7ec

View File

@ -142,8 +142,8 @@ func New(config ...Config) *App {
Name: "", Name: "",
Version: "", Version: "",
EnvDirectory: ".env", EnvDirectory: ".env",
EnvMode: "development", EnvMode: EnvironmentDevelopment,
LogLevel: "debug", LogLevel: LogLevelDebug,
Timezone: "UTC", Timezone: "UTC",
Paseto: nil, Paseto: nil,
SMTPHost: "", SMTPHost: "",
@ -232,7 +232,7 @@ func New(config ...Config) *App {
pk := ak.Public() pk := ak.Public()
duration := time.Hour * 24 * 7 // 7 días por defecto duration := time.Hour * 24 * 7 // 7 days by default
if os.Getenv("PASETO_DURATION") != "" { if os.Getenv("PASETO_DURATION") != "" {
durationStr := os.Getenv("PASETO_DURATION") durationStr := os.Getenv("PASETO_DURATION")
durationInt, err := time.ParseDuration(durationStr) durationInt, err := time.ParseDuration(durationStr)