File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
src/commands/agent/publish Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
103103 const targetOrg = flags [ 'target-org' ] ;
104104 const conn = targetOrg . getConnection ( flags [ 'api-version' ] ) ;
105105
106- // Preserve the original accessToken by storing its value
107- const originalAccessToken = conn . accessToken ;
108-
109106 // First compile the .agent file to get the Agent JSON
110107 const compileResponse = await Agent . compileAgentScript (
111108 conn ,
@@ -137,8 +134,6 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
137134 return Promise . resolve ( ) ;
138135 } ) ;
139136
140- // Restore the original accessToken after compilation
141- conn . accessToken = originalAccessToken ;
142137 const result = await Agent . publishAgentJson ( conn , this . project ! , compileResponse . compiledArtifact ) ;
143138 mso . stop ( ) ;
144139
You can’t perform that action at this time.
0 commit comments