From 35c5678a8761c2b31901fc6972b7448357d5254c Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Tue, 12 Dec 2023 15:43:32 +0800 Subject: [PATCH] update user command --- pkg/common/db/mgo/user.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/common/db/mgo/user.go b/pkg/common/db/mgo/user.go index 94d7c99bb..e212b709f 100644 --- a/pkg/common/db/mgo/user.go +++ b/pkg/common/db/mgo/user.go @@ -3,6 +3,7 @@ package mgo import ( "context" "github.com/OpenIMSDK/protocol/user" + "github.com/OpenIMSDK/tools/log" "time" "github.com/OpenIMSDK/tools/mgoutil" @@ -122,6 +123,7 @@ func (u *UserMgo) GetUserCommands(ctx context.Context, userID string, Type int32 var commands []user.CommandInfoResp for cursor.Next(ctx) { + log.ZDebug(ctx, "mongo", cursor) var commandInfo user.CommandInfoResp // Define a struct that represents your MongoDB document structure