Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions db/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ func (c *mongoCollection) FindOne(ctx context.Context, key interface{}, data int
// Find multiple entries from the store collection for the given filter, where the data
// value is returned as a list based on the object type passed to it
func (c *mongoCollection) FindMany(ctx context.Context, filter interface{}, data interface{}) error {
if filter == nil {
filter = bson.D{}
}
cursor, err := c.col.Find(ctx, filter)
if err != nil {
return err
Expand Down