|
@@ -38,7 +38,7 @@ func (db *MongoDB) GetOrCreateDatabase(name string) *mongo.Database {
|
|
|
|
|
|
func NewMongoDB(bus *comm.NatsBus) *MongoDB {
|
|
func NewMongoDB(bus *comm.NatsBus) *MongoDB {
|
|
|
|
|
|
- inst, err := bus.NewMongoDBFromConfigDev("cmf-mongo")
|
|
|
|
|
|
+ inst, err := bus.NewMongoDBFromConfig("cmf-mongo")
|
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
fmt.Println(err)
|