Skip to content

Commit a5f3e6b

Browse files
chore: filter fix
1 parent bd86288 commit a5f3e6b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/migration/flexcard.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,7 @@ export class CardMigrationTool extends BaseMigrationTool implements MigrationToo
8888
// Perform Records Migration from VlocityCard__c to OmniUiCard
8989
async migrate(): Promise<MigrationResult[]> {
9090
// Get All the Active VlocityCard__c records
91-
// const allCards = await this.getAllActiveCards();
92-
let allCards = await this.getAllActiveCards();
93-
let filteredCards = allCards.filter(
94-
(card: any) => typeof card === 'object' && 'Name' in card && card.Name.includes('ABC')
95-
);
96-
allCards = filteredCards;
91+
const allCards = await this.getAllActiveCards();
9792

9893
Logger.log(this.messages.getMessage('foundFlexCardsToMigrate', [allCards.length]));
9994

0 commit comments

Comments
 (0)