This commit is contained in:
Ybehrooz
2025-05-20 20:07:46 +03:30
parent 7bc33a8808
commit 965d6900be
7 changed files with 28 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ var (
)
func InitDB() {
clientOptions := options.Client().ApplyURI("mongodb://root:example@172.20.158.234:27017/")
clientOptions := options.Client().ApplyURI("mongodb://root:example@192.168.2.177:27017/")
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
log.Fatal(err)