Skip to content

Commit 4ac2bd0

Browse files
committed
Revert "fix session, try another way to inject CreateBy"
This reverts commit 3416ed5.
1 parent 3416ed5 commit 4ac2bd0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/modules/evaluation/application/experiment_app.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"time"
1111

1212
"github.com/bytedance/gg/gptr"
13-
loopsession "github.com/coze-dev/coze-loop/backend/infra/middleware/session"
1413

1514
"github.com/coze-dev/coze-loop/backend/infra/backoff"
1615
"github.com/coze-dev/coze-loop/backend/infra/idgen"
@@ -1114,12 +1113,6 @@ func (e *experimentApplication) InsightAnalysisExperiment(ctx context.Context, r
11141113
session = &entity.Session{
11151114
UserID: strconv.FormatInt(gptr.Indirect(req.Session.UserID), 10),
11161115
}
1117-
} else {
1118-
logs.CtxInfo(ctx, "InsightAnalysisExperiment found empty userID, expt_id: %v, workspace_id: %v", req.GetExptID(), req.GetWorkspaceID())
1119-
userId := loopsession.UserIDInCtxOrEmpty(ctx)
1120-
session = &entity.Session{
1121-
UserID: userId,
1122-
}
11231116
}
11241117
got, err := e.manager.Get(ctx, req.GetExptID(), req.GetWorkspaceID(), session)
11251118
if err != nil {

0 commit comments

Comments
 (0)