From acf06e6e6325ec84385533626470293bf547c67a Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Mon, 21 Oct 2024 20:44:31 +0200 Subject: [PATCH] fix database client #2 --- machinery/src/config/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machinery/src/config/main.go b/machinery/src/config/main.go index a6caf8f..6a11b8d 100644 --- a/machinery/src/config/main.go +++ b/machinery/src/config/main.go @@ -525,7 +525,7 @@ func StoreConfig(configDirectory string, config models.Config) error { // Write to mongodb client := database.New() - db := client.Database(database.DatabaseName) + db := client.Client.Database(database.DatabaseName) collection := db.Collection("configuration") ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)