cleaner tests i thought

This commit is contained in:
breel
2020-08-01 01:09:35 -06:00
parent baf0aaa287
commit 71b1de33ec
7 changed files with 141 additions and 141 deletions

View File

@@ -17,8 +17,8 @@ type Mongo struct {
db string
}
func NewMongo() Mongo {
opts := options.Client().ApplyURI(config.New().DBURI)
func NewMongo(path string) Mongo {
opts := options.Client().ApplyURI(path)
c, err := mongo.NewClient(opts)
if err != nil {
panic(err)