From dfa9eb44e160f7a6ebb5d991a495cc5fef580d0b Mon Sep 17 00:00:00 2001 From: junwen-lee Date: Fri, 15 Aug 2025 15:55:11 +0800 Subject: [PATCH] fix(singleagent): remove code (#774) --- backend/application/singleagent/single_agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/application/singleagent/single_agent.go b/backend/application/singleagent/single_agent.go index c2411851..b83915f4 100644 --- a/backend/application/singleagent/single_agent.go +++ b/backend/application/singleagent/single_agent.go @@ -524,8 +524,7 @@ func (s *SingleAgentApplicationService) GetAgentDraftDisplayInfo(ctx context.Con func (s *SingleAgentApplicationService) ValidateAgentDraftAccess(ctx context.Context, agentID int64) (*entity.SingleAgent, error) { uid := ctxutil.GetUIDFromCtx(ctx) if uid == nil { - uid = ptr.Of(int64(888)) - // return nil, errorx.New(errno.ErrAgentPermissionCode, errorx.KV("msg", "session uid not found")) + return nil, errorx.New(errno.ErrAgentPermissionCode, errorx.KV("msg", "session uid not found")) } do, err := s.DomainSVC.GetSingleAgentDraft(ctx, agentID)