diff --git a/src/lib/hierarchy-operations/lineage-constraints.js b/src/lib/hierarchy-operations/lineage-constraints.js index f2478aac..6196fce7 100644 --- a/src/lib/hierarchy-operations/lineage-constraints.js +++ b/src/lib/hierarchy-operations/lineage-constraints.js @@ -15,9 +15,6 @@ module.exports = async (db, options) => { } }, assertNoHierarchyErrors: (sourceDocs, destinationDoc) => { - if (!Array.isArray(sourceDocs)) { - sourceDocs = [sourceDocs]; - } sourceDocs.forEach(sourceDoc => { const hierarchyError = options.merge ?