From 3a6d945691b1966f210f61fb891e62bd9a14a31b Mon Sep 17 00:00:00 2001 From: shivv23 Date: Fri, 8 May 2026 16:03:24 +0530 Subject: [PATCH] fix: correct log message showing contact count in delete-hierarchy --- src/lib/hierarchy-operations/delete-hierarchy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/hierarchy-operations/delete-hierarchy.js b/src/lib/hierarchy-operations/delete-hierarchy.js index 1d27becc..eeaca76e 100644 --- a/src/lib/hierarchy-operations/delete-hierarchy.js +++ b/src/lib/hierarchy-operations/delete-hierarchy.js @@ -24,7 +24,7 @@ async function deleteHierarchy(db, options, sourceIds) { const affectedContactCount = descendantsAndSelf.length; info( - `Staged updates to delete ${prettyPrintDocument(sourceDoc)}. ${affectedContactCount.length} contact(s) ` + `Staged updates to delete ${prettyPrintDocument(sourceDoc)}. ${affectedContactCount} contact(s) ` + `and ${affectedReportCount} report(s).` ); }