Browse Source

Fixed incorrect unmarshalling of results from story.List

1.0
Gisle Aune 6 years ago
parent
commit
011cb00001
  1. 2
      model/story/story.go

2
model/story/story.go

@ -220,7 +220,7 @@ func List(author string, tags []Tag, earliest, latest time.Time, limit int) ([]S
}
stories := make([]Story, 0, 128)
err := storyCollection.Find(query).Limit(limit).One(&stories)
err := storyCollection.Find(query).Limit(limit).All(&stories)
return stories, err
}

Loading…
Cancel
Save