|
|
@ -99,7 +99,7 @@ func (m *Mongo) createMongoIndex(collection string, isUnique bool, keys ...strin
|
|
|
|
index := mongo.IndexModel{
|
|
|
|
index := mongo.IndexModel{
|
|
|
|
Keys: keysDoc,
|
|
|
|
Keys: keysDoc,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if isUnique == true {
|
|
|
|
if isUnique {
|
|
|
|
index.Options = options.Index().SetUnique(true)
|
|
|
|
index.Options = options.Index().SetUnique(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result, err := indexView.CreateOne(
|
|
|
|
result, err := indexView.CreateOne(
|
|
|
|