From 091cc811fb0f1bf0ff3f16f98c6e027bc28ff38a Mon Sep 17 00:00:00 2001 From: Jed Date: Tue, 20 Aug 2024 12:26:03 +0200 Subject: [PATCH] in checkDuplicates do not check only for those who failed before --- lib/methods/import.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/methods/import.js b/lib/methods/import.js index 3200bdc3..09b96bff 100644 --- a/lib/methods/import.js +++ b/lib/methods/import.js @@ -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)) {