Skip to content

Commit c843e45

Browse files
fix: cleaned up
1 parent 7ddc839 commit c843e45

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/commands/omnistudio/migration/migrate.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,6 @@ export default class Migrate extends OmniStudioBaseCommand {
5757
const apiVersion = (this.flags.apiversion || '55.0') as string;
5858
const migrateOnly = (this.flags.only || '') as string;
5959
const allVersions = this.flags.allversions || false;
60-
// await sfcclicommand.fetchApexClasses(this.org, '/Users/abhinavkumar2/company/mywork');
61-
// await sfcclicommand.deployApexClasses(this.org, '/Users/abhinavkumar2/company/mywork/main/default/classes');
62-
/* sfProject.create('omnistudio_migration', '/Users/abhinavkumar2/company/new');
63-
this.ux.log('creating project');
64-
const pwd = shell.pwd();
65-
shell.cd('/Users/abhinavkumar2/company/new/omnistudio_migration');
66-
cli.exec(`sf project retrieve start --metadata Apexclass --target-org ${this.org.getUsername()}`);
67-
this.ux.log('retrieving apex classes');
68-
cli.exec(`sf project deploy start --metadata Apexclass --target-org ${this.org.getUsername()}`);
69-
shell.cd(pwd);
70-
*/
7160

7261
Logger.initialiseLogger(this.ux, this.logger);
7362
this.logger = Logger.logger;
@@ -136,14 +125,6 @@ export default class Migrate extends OmniStudioBaseCommand {
136125
// Migrate individual objects
137126
const debugTimer = DebugTimer.getInstance();
138127
let objectMigrationResults: MigratedObject[] = [];
139-
const omnistudioRelatedObjectsMig = new OmnistudioRelatedObjectMigrationFacade(
140-
namespace,
141-
migrateOnly,
142-
allVersions,
143-
this.org
144-
);
145-
omnistudioRelatedObjectsMig.migrateAll(objectMigrationResults, ['apex']);
146-
147128
// We need to truncate the standard objects first
148129
let allTruncateComplete = true;
149130
for (const cls of migrationObjects.reverse()) {
@@ -194,7 +175,7 @@ export default class Migrate extends OmniStudioBaseCommand {
194175
allVersions,
195176
this.org
196177
);
197-
omnistudioRelatedObjectsMigration.migrateAll(objectMigrationResults, ['Apex']);
178+
omnistudioRelatedObjectsMigration.migrateAll(objectMigrationResults, []);
198179
await ResultsBuilder.generate(objectMigrationResults, conn.instanceUrl);
199180

200181
// save timer to debug logger

0 commit comments

Comments
 (0)