Register multiple parents during child registration #9

Merged
p.vanderwilt merged 3 commits from dev-Pieter into main 2025-10-31 10:36:28 +00:00
Showing only changes of commit f653a1e98c - Show all commits

View File

@@ -11,11 +11,11 @@ class ChildRegistrationUtils {
this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`); this.logger.debug(`Registering child: ${name} (${id}) as ${softwareType} at ${positionVsParent}`);
// Enhanced child setup - optional multiple parents // Enhanced child setup - multiple parents
if (Array.isArray(child.parent)) { if (Array.isArray(child.parent)) {
child.parent.push(this.mainClass); child.parent.push(this.mainClass);
} else { } else {
child.parent = this.mainClass; child.parent = [this.mainClass];
} }
child.positionVsParent = positionVsParent; child.positionVsParent = positionVsParent;