Skip to content

Commit

Permalink
rename field
Browse files Browse the repository at this point in the history
  • Loading branch information
kayra1 committed Jun 5, 2024
1 parent 869536a commit e06e1c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ keypath: "./key.pem"
certpath: "./cert.pem"
dbpath: "./certs.db"
port: 3000
pebble-notifications-enabled: true
pebblenotificationsenabled: true
```
6 changes: 3 additions & 3 deletions internal/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ type ConfigYAML struct {
CertPath string
DBPath string
Port int
PebbleNotificationsEnabled bool
Pebblenotificationsenabled bool
}

type Config struct {
Key []byte
Cert []byte
DBPath string
Port int
PebbleNotificationsEnabled bool
PebbleNotificationsEnabled bool `yaml:"pebble-notifications-enabled"`
}

type Environment struct {
Expand Down Expand Up @@ -69,7 +69,7 @@ func validateConfigFile(filePath string) (Config, error) {
config.Key = key
config.DBPath = c.DBPath
config.Port = c.Port
config.PebbleNotificationsEnabled = c.PebbleNotificationsEnabled
config.PebbleNotificationsEnabled = c.Pebblenotificationsenabled
return config, nil
}

Expand Down

0 comments on commit e06e1c5

Please sign in to comment.