fix(singleagent): remove code (#774)
This commit is contained in:
parent
4ff734f15f
commit
dfa9eb44e1
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue