fix(singleagent): remove code (#774)

This commit is contained in:
junwen-lee 2025-08-15 15:55:11 +08:00 committed by GitHub
parent 4ff734f15f
commit dfa9eb44e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -524,8 +524,7 @@ func (s *SingleAgentApplicationService) GetAgentDraftDisplayInfo(ctx context.Con
func (s *SingleAgentApplicationService) ValidateAgentDraftAccess(ctx context.Context, agentID int64) (*entity.SingleAgent, error) { func (s *SingleAgentApplicationService) ValidateAgentDraftAccess(ctx context.Context, agentID int64) (*entity.SingleAgent, error) {
uid := ctxutil.GetUIDFromCtx(ctx) uid := ctxutil.GetUIDFromCtx(ctx)
if uid == nil { 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) do, err := s.DomainSVC.GetSingleAgentDraft(ctx, agentID)