From 16cd82a7322942d4af2f499e8fed9eccd83b89bb Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 1 Oct 2023 15:16:55 -0400 Subject: [PATCH] fix: JSON import fails if the same import has been imported and deleted previously --- server/queues/tasks/ImportTask.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/queues/tasks/ImportTask.ts b/server/queues/tasks/ImportTask.ts index b5c186d0c..8abe60324 100644 --- a/server/queues/tasks/ImportTask.ts +++ b/server/queues/tasks/ImportTask.ts @@ -301,6 +301,7 @@ export default abstract class ImportTask extends BaseTask { if (item.urlId) { const existing = await Collection.unscoped().findOne({ attributes: ["id"], + paranoid: false, transaction, where: { urlId: item.urlId, @@ -413,6 +414,7 @@ export default abstract class ImportTask extends BaseTask { if (item.urlId) { const existing = await Document.unscoped().findOne({ attributes: ["id"], + paranoid: false, transaction, where: { urlId: item.urlId,