mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-07-08 21:31:13 +08:00
Modify conversation_id index options
Removed the unique constraint from the conversation_id index.
This commit is contained in:
parent
d16a617ba8
commit
c66b2d95ad
@ -51,7 +51,7 @@ func NewConversationMongo(db *mongo.Database) (*ConversationMgo, error) {
|
|||||||
Keys: bson.D{
|
Keys: bson.D{
|
||||||
{Key: "conversation_id", Value: 1},
|
{Key: "conversation_id", Value: 1},
|
||||||
},
|
},
|
||||||
Options: options.Index().SetUnique(true),
|
Options: options.Index(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user