From c66b2d95ad3f66db966fc979bcf38683b4e592dc Mon Sep 17 00:00:00 2001 From: buvidk1234 <161066602+buvidk1234@users.noreply.github.com> Date: Sun, 3 May 2026 22:21:10 +0800 Subject: [PATCH] Modify conversation_id index options Removed the unique constraint from the conversation_id index. --- pkg/common/storage/database/mgo/conversation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/storage/database/mgo/conversation.go b/pkg/common/storage/database/mgo/conversation.go index c1d00f0ed..30f08f5e5 100644 --- a/pkg/common/storage/database/mgo/conversation.go +++ b/pkg/common/storage/database/mgo/conversation.go @@ -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 {