Skip to content

Commit

Permalink
fix database client #2
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 21, 2024
1 parent 3f43e15 commit acf06e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machinery/src/config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit acf06e6

Please sign in to comment.