Skip to content

Commit

Permalink
mongodb bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Nov 5, 2022
1 parent 66dbc69 commit 5dcf238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/db/mongox/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ func (m *Provider) open() error {

if m.MongoDB.CollectionName == "" {
return fmt.Errorf("mongoDB collection name missing")
} else {
m.GetCollection(m.MongoDB.CollectionName)
}

return nil
Expand Down

0 comments on commit 5dcf238

Please sign in to comment.