Skip to content

fix(#10706): correct log message showing contact count in delete-hierarchy#819

Open
shivv23 wants to merge 1 commit into
medic:mainfrom
shivv23:fix/delete-hierarchy-contact-count
Open

fix(#10706): correct log message showing contact count in delete-hierarchy#819
shivv23 wants to merge 1 commit into
medic:mainfrom
shivv23:fix/delete-hierarchy-contact-count

Conversation

@shivv23
Copy link
Copy Markdown

@shivv23 shivv23 commented May 8, 2026

Summary

Fixes a bug where affectedContactCount.length was used in a log message, but affectedContactCount is already a number (descendantsAndSelf.length). This caused the log to print undefined contact(s) instead of the actual count.

Change

  • Changed ${affectedContactCount.length} to ${affectedContactCount} in the info log line

Related

This work is part of understanding the hierarchy operations code that DMP 2026 issue medic/cht-core#10706 plans to port into cht-core as REST API endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant