Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ddspog committed May 4, 2018
2 parents 58df2fa + 59affef commit bcd9c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defer mongo.Disconnect()
// handle the operations on MongoDB with a handler, use:
mongo.ConsumeDatabaseOnSession(func(db elements.Databaser) {
// Make db object available on handlers.
p := NewProductHandler()
p := handler.NewProductHandler()
p.Link(db)

// ... Do other operations.
Expand All @@ -53,7 +53,7 @@ s := mongo.NewSocket()
defer s.Close()

// Make db object available on handlers.
p := NewProductHandler()
p := handler.NewProductHandler()
p.Link(s.DB())

// ... Do other operations.
Expand All @@ -67,7 +67,7 @@ mongo.Connect()
defer mongo.Disconnect()

// Create a linked handler
p, _ := NewLinkedProductHandler()
p, _ := handler.NewLinkedProductHandler()

// ... Do other operations.
```
Expand Down Expand Up @@ -214,7 +214,7 @@ func NewLinked() (p *ProductHandle, err error) {
p = &ProductHandle{
DocumentV: product.New(),
}
p.Handle, err = NewLinkedHandle("products")
p.Handle, err = mongo.NewLinkedHandle("products")
}
```

Expand Down

0 comments on commit bcd9c83

Please sign in to comment.