From 303e2c4ecc363053b9b5492ee3d7c71c2707a446 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 11 May 2023 20:27:05 +0800 Subject: [PATCH] decode --- pkg/common/db/unrelation/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/unrelation/msg.go b/pkg/common/db/unrelation/msg.go index 5d579dc0e..1b97e24a4 100644 --- a/pkg/common/db/unrelation/msg.go +++ b/pkg/common/db/unrelation/msg.go @@ -155,7 +155,7 @@ func (m *MsgMongoDriver) GetMsgBySeqIndexIn1Doc(ctx context.Context, docID strin } log.ZDebug(ctx, "info", "beginIndex", beginIndex, "num", num) var msgInfos []*table.MsgInfoModel - if err := cursor.All(ctx, &msgInfos); err != nil { + if err := cursor.Decode(&msgInfos); err != nil { return nil, nil, err } if len(msgInfos) < 1 {