From 965154900544d938a793f6946066b00c19bc7645 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 1 Jun 2023 14:15:10 +0800 Subject: [PATCH] test GetMsgBySeqIndexIn1Doc --- pkg/common/db/unrelation/msg.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/common/db/unrelation/msg.go b/pkg/common/db/unrelation/msg.go index b8581e3b0..c6506c6d6 100644 --- a/pkg/common/db/unrelation/msg.go +++ b/pkg/common/db/unrelation/msg.go @@ -244,6 +244,7 @@ func (m *MsgMongoDriver) GetMsgBySeqIndexIn1Doc(ctx context.Context, userID stri } for i, model := range msgDocModel[0].Msg { if i < 10 { + log.ZDebug(ctx, "GetMsgBySeqIndexIn1Doc for", "index", i, "model", model, "eq nil", model == nil) log.ZDebug(ctx, "GetMsgBySeqIndexIn1Doc for", "index", i, "msg", model.Msg, "del", model.DelList, "revoke", model.Revoke) } if model.Msg != nil && model.Revoke != nil {