From f3442715358e0debcd7f676c9ceda84d173ce77b Mon Sep 17 00:00:00 2001
From: Reza <reza@ies-italia.it>
Date: Tue, 30 Jul 2024 14:17:55 +0200
Subject: [PATCH] new settings

---
 lib/connectors/nats/nats.go           | 3 ++-
 lib/connectors/redis/redis.go         | 3 ++-
 lib/settings_old/database/database.go | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/connectors/nats/nats.go b/lib/connectors/nats/nats.go
index 11d9ac0..9984c06 100644
--- a/lib/connectors/nats/nats.go
+++ b/lib/connectors/nats/nats.go
@@ -2,6 +2,7 @@ package nats
 
 import (
 	"fmt"
+	"github.com/getevo/evo/v2/lib/settings"
 	"time"
 
 	"github.com/getevo/evo/v2/lib/log"
@@ -60,7 +61,7 @@ func (NATS) Register() error {
 	if nc != nil {
 		return nil
 	}
-	settings.Register(
+	_ = settings.Register(
 		settings.SettingDomain{
 			Title:       "NATS",
 			Domain:      "NATS",
diff --git a/lib/connectors/redis/redis.go b/lib/connectors/redis/redis.go
index 92f2192..6fa7a70 100644
--- a/lib/connectors/redis/redis.go
+++ b/lib/connectors/redis/redis.go
@@ -6,6 +6,7 @@ import (
 	"github.com/getevo/evo/v2/lib/memo/kv"
 	"github.com/getevo/evo/v2/lib/pubsub"
 	"github.com/getevo/evo/v2/lib/serializer"
+	"github.com/getevo/evo/v2/lib/settings"
 	"github.com/go-redis/redis/v8"
 	"strings"
 	"time"
@@ -58,7 +59,7 @@ func (driver) Register() error {
 	if Client != nil {
 		return nil
 	}
-	settings.Register(settings.Setting{
+	_ = settings.Register(settings.Setting{
 		Domain:      "CACHE",
 		Name:        "REDIS_ADDRESS",
 		Title:       "Redis server(s) address",
diff --git a/lib/settings_old/database/database.go b/lib/settings_old/database/database.go
index 80d72a5..2a41955 100644
--- a/lib/settings_old/database/database.go
+++ b/lib/settings_old/database/database.go
@@ -5,6 +5,7 @@ import (
 	"github.com/getevo/evo/v2/lib/args"
 	"github.com/getevo/evo/v2/lib/db"
 	"github.com/getevo/evo/v2/lib/log"
+	"github.com/getevo/evo/v2/lib/settings_old"
 	"strings"
 	"sync"
 
@@ -206,7 +207,7 @@ func (config *Database) Register(sets ...any) error {
 		for _, s := range sets {
 			var v = generic.Parse(s)
 			if v.Is("settings.Setting") {
-				var setting = settings.Setting{}
+				var setting = settings_old.Setting{}
 				var err = v.Cast(&setting)
 				if err != nil {
 					return err