diff --git a/server/commands/documentMover.js b/server/commands/documentMover.js index 72eeaa8f33..aa7c06eb8e 100644 --- a/server/commands/documentMover.js +++ b/server/commands/documentMover.js @@ -40,9 +40,12 @@ export default async function documentMover({ const collection = await Collection.findByPk(document.collectionId, { transaction, }); - const documentJson = await collection.removeDocumentInStructure(document, { - save: false, - }); + const documentJson = await collection.removeDocumentInStructure( + document, + { + save: false, + } + ); // if the collection is the same then it will get saved below, this // line prevents a pointless intermediate save from occurring.