News index should not be unique

This commit is contained in:
Las Zenow 2014-08-31 17:41:39 -05:00
parent deefd5a7f5
commit 9641351ac3

View file

@ -21,7 +21,6 @@ type News struct {
func indexNews(coll *mgo.Collection) {
idx := mgo.Index{
Key: []string{"-date"},
Unique: true,
Background: true,
}
err := coll.EnsureIndex(idx)