From d7e632b1ce0162e63417103438927b8d470c1374 Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Fri, 5 Jan 2024 11:05:57 +0800 Subject: [PATCH] fix type = 0 --- pkg/common/db/mgo/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/common/db/mgo/user.go b/pkg/common/db/mgo/user.go index f725e7a24..ff5929c2f 100644 --- a/pkg/common/db/mgo/user.go +++ b/pkg/common/db/mgo/user.go @@ -190,7 +190,7 @@ func (u *UserMgo) GetAllUserCommand(ctx context.Context, userID string) ([]*user if err := cursor.Decode(&document); err != nil { return nil, err } - log.ZDebug(ctx, "usercommandget", "docuemnt", document) + commandInfo := &user.AllCommandInfoResp{ Type: document.Type, Uuid: document.UUID, @@ -204,7 +204,7 @@ func (u *UserMgo) GetAllUserCommand(ctx context.Context, userID string) ([]*user if err := cursor.Err(); err != nil { return nil, err } - + log.ZDebug(ctx, "usercommandget", "commands", commands) return commands, nil } func (u *UserMgo) CountRangeEverydayTotal(ctx context.Context, start time.Time, end time.Time) (map[string]int64, error) {