From 51f76da913d6438d30dc58d4e3f43292b750442e Mon Sep 17 00:00:00 2001 From: Kenn Sippell Date: Wed, 11 Dec 2024 10:44:42 -0800 Subject: [PATCH] Update src/lib/hierarchy-operations/lineage-constraints.js Co-authored-by: Joshua Kuestersteffen --- src/lib/hierarchy-operations/lineage-constraints.js | 3 --- 1 file changed, 3 deletions(-) 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 ?