diff --git a/pkg/common/db/unrelation/msg.go b/pkg/common/db/unrelation/msg.go index 71fd7cbc6..2d256693e 100644 --- a/pkg/common/db/unrelation/msg.go +++ b/pkg/common/db/unrelation/msg.go @@ -298,7 +298,6 @@ func (m *MsgMongoDriver) MarkSingleChatMsgsAsRead(ctx context.Context, userID st SetFilter(filter). SetUpdate(update) updates = append(updates, updateModel) - } _, err := m.MsgCollection.BulkWrite(ctx, updates) return err