fix: JSON import fails if the same import has been imported and deleted previously
This commit is contained in:
@@ -301,6 +301,7 @@ export default abstract class ImportTask extends BaseTask<Props> {
|
|||||||
if (item.urlId) {
|
if (item.urlId) {
|
||||||
const existing = await Collection.unscoped().findOne({
|
const existing = await Collection.unscoped().findOne({
|
||||||
attributes: ["id"],
|
attributes: ["id"],
|
||||||
|
paranoid: false,
|
||||||
transaction,
|
transaction,
|
||||||
where: {
|
where: {
|
||||||
urlId: item.urlId,
|
urlId: item.urlId,
|
||||||
@@ -413,6 +414,7 @@ export default abstract class ImportTask extends BaseTask<Props> {
|
|||||||
if (item.urlId) {
|
if (item.urlId) {
|
||||||
const existing = await Document.unscoped().findOne({
|
const existing = await Document.unscoped().findOne({
|
||||||
attributes: ["id"],
|
attributes: ["id"],
|
||||||
|
paranoid: false,
|
||||||
transaction,
|
transaction,
|
||||||
where: {
|
where: {
|
||||||
urlId: item.urlId,
|
urlId: item.urlId,
|
||||||
|
|||||||
Reference in New Issue
Block a user