Skip to content

Commit b2d2dc9

Browse files
fix: remove call to preserve accessToken
1 parent 98cb12a commit b2d2dc9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/commands/agent/publish/authoring-bundle.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)