mirror of
https://github.com/outline/outline.git
synced 2026-11-25 23:24:06 +03:00
fix: JSON import fails if the same import has been imported and deleted previously
This commit is contained in:
1 parent
41a6f77998
commit
16cd82a732
1 file changed
+2
@@ -301,6 +301,7 @@ export default abstract class ImportTask extends BaseTask<Props> {
|
||||
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<Props> {
|
||||
if (item.urlId) {
|
||||
const existing = await Document.unscoped().findOne({
|
||||
attributes: ["id"],
|
||||
paranoid: false,
|
||||
transaction,
|
||||
where: {
|
||||
urlId: item.urlId,
|
||||
|
||||
Reference in new issue
Block a user