From b255959057f2279220f2dfef18adad9261705123 Mon Sep 17 00:00:00 2001 From: Keloran Date: Wed, 8 May 2024 08:46:40 +0100 Subject: [PATCH] refactor(database): Update database system type in Config struct 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. --- config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.go b/config.go index 6e9946c..274df35 100644 --- a/config.go +++ b/config.go @@ -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 @@ -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 }