mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-06-28 21:58:17 +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{
|
||||
{Key: "conversation_id", Value: 1},
|
||||
},
|
||||
Options: options.Index().SetUnique(true),
|
||||
Options: options.Index(),
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user