Skip to content

Commit

Permalink
refactor(database): Update database system type in Config struct
Browse files Browse the repository at this point in the history
Refactor the Config struct in order to update the type of the Database field
from `database.Details` to `database.System` for consistency with other system
types.
  • Loading branch information
Keloran committed May 8, 2024
1 parent 02d68a0 commit b255959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Config struct {

Local local.System
Vault vault.System
Database database.Details
Database database.System
Keycloak keycloak.System
Mongo mongo.System
Rabbit rabbit.System
Expand Down Expand Up @@ -77,12 +77,12 @@ func Database(cfg *Config) error {

d.Setup(vd, *cfg.VaultHelper)
}
db, err := d.Build()
_, err := d.Build()
if err != nil {
return logs.Errorf("database failed to build: %v", err)
}

cfg.Database = *db
cfg.Database = *d

return nil
}
Expand Down

0 comments on commit b255959

Please sign in to comment.