|
|
|
@ -137,7 +137,6 @@ func (m *MsgMongoDriver) UpdateOneDoc(ctx context.Context, msg *table.MsgDocMode
|
|
|
|
|
func (m *MsgMongoDriver) GetMsgBySeqIndexIn1Doc(ctx context.Context, docID string, beginSeq, endSeq int64) (msgs []*sdkws.MsgData, seqs []int64, err error) {
|
|
|
|
|
beginIndex := m.msg.GetMsgIndex(beginSeq)
|
|
|
|
|
num := endSeq - beginSeq + 1
|
|
|
|
|
|
|
|
|
|
pipeline := bson.A{
|
|
|
|
|
bson.M{
|
|
|
|
|
"$match": bson.M{"doc_id": docID},
|
|
|
|
|