fix(singleagent): remove code (#774)

main
junwen-lee 2 months ago committed by GitHub
parent 4ff734f15f
commit dfa9eb44e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      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)

Loading…
Cancel
Save