Skip to content

Commit d3b4a9d

Browse files
chore: updated the message in user action items
1 parent 607fb4b commit d3b4a9d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/migration/premigrate.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,17 +131,21 @@ export class PreMigrate extends BaseMigrationTool {
131131
deploymentConfig.authKey = process.env[authEnvKey];
132132
if (!deploymentConfig.authKey) {
133133
Logger.warn(this.messages.getMessage('authKeyEnvVarNotSet'));
134-
actionItems.push(this.messages.getMessage('authKeyEnvVarNotSet'));
134+
actionItems.push(
135+
`${this.messages.getMessage('authKeyEnvVarNotSet')}\n${this.messages.getMessage('manualDeploymentSteps', [
136+
documentRegistry.manualDeploymentSteps,
137+
])}`
138+
);
135139
}
136140
}
137141

138142
if (!consent) {
139143
Logger.warn(this.messages.getMessage('deploymentConsentNotGiven'));
140-
actionItems.push(this.messages.getMessage('deploymentConsentNotGiven'));
141-
}
142-
143-
if (!consent || (includeLwc && !deploymentConfig.authKey)) {
144-
actionItems.push(this.messages.getMessage('manualDeploymentSteps', [documentRegistry.manualDeploymentSteps]));
144+
actionItems.push(
145+
`${this.messages.getMessage('deploymentConsentNotGiven')}\n${this.messages.getMessage('manualDeploymentSteps', [
146+
documentRegistry.manualDeploymentSteps,
147+
])}`
148+
);
145149
}
146150

147151
return deploymentConfig;

src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ export default class OmnistudioRelatedObjectMigrationFacade {
8383
sfProject.retrieve(LWCTYPE, this.org.getUsername());
8484
}
8585
if (relatedObjects.includes(Constants.Apex)) {
86-
sfProject.retrieve(APEXCLASS, this.org.getUsername());
86+
Logger.logVerbose(APEXCLASS);
87+
// sfProject.retrieve(APEXCLASS, this.org.getUsername());
8788
}
8889

8990
if (relatedObjects.includes(Constants.FlexiPage)) {

0 commit comments

Comments
 (0)