Modify conversation_id index options

Removed the unique constraint from the conversation_id index.
This commit is contained in:
buvidk1234 2026-05-03 22:21:10 +08:00 committed by GitHub
parent d16a617ba8
commit c66b2d95ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {