News index should not be unique
This commit is contained in:
parent
deefd5a7f5
commit
9641351ac3
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue