Skip to content

Commit

Permalink
fix(ans-104): skip duplicate IDs during import PE-7435
Browse files Browse the repository at this point in the history
If there's more than one data item with the same ID in an ANS-104
bundle, we keep the first and skip the rest.
  • Loading branch information
djwhitt committed Jan 16, 2025
1 parent 14fc452 commit 96e0317
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/ans-104.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ if (!isMainThread) {
diLog.warn('Skipping data item with missing data offset.');
}

processedDataItemIds.add(dataItem.id);

// compute the hash of the data item data
const dataItemHash = await hashDataItemData(
bundlePath,
Expand Down

0 comments on commit 96e0317

Please sign in to comment.