Skip to content

Commit b87c274

Browse files
Update migrate.ts
1 parent 84eab4d commit b87c274

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/omnistudio/migration/migrate.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,11 @@ export default class Migrate extends OmniStudioBaseCommand {
452452
let errors: any[] = obj.errors || [];
453453
errors = errors.concat(recordResults.errors || []);
454454

455-
obj.status = 'Hardcoded';
455+
obj.status = recordResults?.skipped
456+
? messages.getMessage('labelStatusSkipped')
457+
: !recordResults || recordResults.hasErrors
458+
? messages.getMessage('labelStatusFailed')
459+
: messages.getMessage('labelStatusComplete');
456460
obj.errors = errors;
457461
obj.migratedId = recordResults.id;
458462
obj.warnings = recordResults.warnings;

0 commit comments

Comments
 (0)