This commit is contained in:
Tom Moor committed 2020-08-20 20:11:58 -07:00
1 parent 2c96cc6de7
commit c36739738d
1 file changed
+6 -3
+6 -3
View File
@@ -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.