Skip to content

Commit

Permalink
fix: search log can return platform
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Jul 29, 2024
1 parent b0cc437 commit 9cf8202
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/rpc/third/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/openimsdk/protocol/third"
"github.com/openimsdk/tools/errs"
"github.com/openimsdk/tools/utils/datautil"
"github.com/openimsdk/tools/utils/stringutil"
)

func genLogID() string {
Expand Down Expand Up @@ -111,7 +110,7 @@ func dbToPbLogInfos(logs []*relationtb.Log) []*third.LogInfo {
return &third.LogInfo{
Filename: log.FileName,
UserID: log.UserID,
Platform: stringutil.StringToInt32(log.Platform),
Platform: int32(constant.PlatformName2ID[log.Platform]),
Url: log.Url,
CreateTime: log.CreateTime.UnixMilli(),
LogID: log.LogID,
Expand Down

0 comments on commit 9cf8202

Please sign in to comment.