Skip to content

Commit

Permalink
fix database client
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 21, 2024
1 parent c14683e commit 3f43e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion machinery/src/config/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func OpenConfig(configDirectory string, configuration *models.Configuration) {
// Write to mongodb
client := database.New()

db := client.Database(database.DatabaseName)
db := client.Client.Database(database.DatabaseName)
collection := db.Collection("configuration")

var globalConfig models.Config
Expand Down
2 changes: 1 addition & 1 deletion machinery/src/database/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var TIMEOUT = 10 * time.Second
var _init_ctx sync.Once
var _instance *DB

var DatabaseName = os.Getenv("MONGODB_DATABASE_STORAGE")
var DatabaseName = os.Getenv("MONGODB_DATABASE_FACTORY")

func New() *DB {

Expand Down

0 comments on commit 3f43e15

Please sign in to comment.