Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: moves skipping of items before id translation so that id can be …
Browse files Browse the repository at this point in the history
…referenced (fixes #34)
  • Loading branch information
Enngage committed Jul 22, 2022
1 parent 743d7b9 commit 9d1a472
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/import/import.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,18 @@ export class ImportService {
console.log(`Translating object ids to codenames`);
}

// this is an optional step where users can exclude certain objects from being
// imported via import configuration.
// this has to be done before translating ids
this.removeSkippedItemsFromImport(sourceData);

// translate ids to codenames for certain objects types
this.translateIds(sourceData);

if (this.config.enableLog) {
console.log(`Removing skipped items`);
}

// this is an optional step where users can exclude certain objects from being
// imported via import configuration.
this.removeSkippedItemsFromImport(sourceData);

if (this.config.enableLog) {
console.log(`Importing data`);
}
Expand Down

0 comments on commit 9d1a472

Please sign in to comment.