commit doble databse
This commit is contained in:
No files matched your search
@@ -5,9 +5,9 @@ import (
|
||||
)
|
||||
|
||||
type DatabaseService struct {
|
||||
DB *mongo.Database
|
||||
DBMongo *mongo.Database
|
||||
}
|
||||
|
||||
func NewDatabaseService(db *mongo.Database) *DatabaseService {
|
||||
return &DatabaseService{DB: db}
|
||||
func NewDatabaseServiceMongo(db *mongo.Database) *DatabaseService {
|
||||
return &DatabaseService{DBMongo: db}
|
||||
}
|
||||
Reference in New Issue
Block a user