Skip to content

Commit 73eb37a

Browse files
fix: review comments
1 parent 1e77399 commit 73eb37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/migration/related/OmnistudioRelatedObjectMigrationFacade.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ export default class OmnistudioRelatedObjectMigrationFacade {
6666
const debugTimer = DebugTimer.getInstance();
6767
debugTimer.start();
6868
// Initialize migration tools based on the relatedObjects parameter
69-
const apexMigrator = new ApexMigration(this.projectPath, this.namespace, this.org, targetApexNamespace);
70-
const lwcMigrator = new LwcMigration(this.projectPath, this.namespace, this.org);
7169
let apexAssessmentInfos: ApexAssessmentInfo[] = [];
7270
let lwcAssessmentInfos: LWCAssessmentInfo[] = [];
7371
// Proceed with migration logic
7472
try {
7573
if (relatedObjects.includes('apex')) {
74+
const apexMigrator = new ApexMigration(this.projectPath, this.namespace, this.org, targetApexNamespace);
7675
apexAssessmentInfos = apexMigrator.migrate();
7776
}
7877
} catch (Error) {
@@ -81,6 +80,7 @@ export default class OmnistudioRelatedObjectMigrationFacade {
8180
}
8281
try {
8382
if (relatedObjects.includes('lwc')) {
83+
const lwcMigrator = new LwcMigration(this.projectPath, this.namespace, this.org);
8484
lwcAssessmentInfos = lwcMigrator.migrate();
8585
}
8686
} catch (Error) {

0 commit comments

Comments
 (0)