Skip to content

Commit

Permalink
Merge pull request #50 from Keloran/update-database-system-models
Browse files Browse the repository at this point in the history
refactor(database): Update database system type in Config struct
  • Loading branch information
Keloran authored May 8, 2024
2 parents 02d68a0 + b255959 commit 615a235
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 615a235

Please sign in to comment.