Skip to content

Commit

Permalink
Merge pull request #75 from apostrophecms/fix-tests
Browse files Browse the repository at this point in the history
in checkDuplicates do not check only for those who failed before
  • Loading branch information
ValJed authored Aug 20, 2024
2 parents 9f7a264 + 091cc81 commit 8e7bc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/methods/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,10 @@ module.exports = self => {
reporting, docs, failedIds
}) {
const docIds = [];
const alreadyFailed = [ ...failedIds ];

for (const { type, aposDocId } of docs) {
if (failedIds.includes(aposDocId)) {
if (alreadyFailed.includes(aposDocId)) {
continue;
}
if (!self.canImport(req, type)) {
Expand Down

0 comments on commit 8e7bc39

Please sign in to comment.