Skip to content

v7.0.77

Choose a tag to compare

@mseiedmiri mseiedmiri released this 19 Sep 07:56
· 21 commits to master since this release

Map agent brands: traverse the inline brand tree

Fixes the mapper finding only one agent on deep brand hierarchies.

Cause: the brand.children + brand.users response nests the entire subtree inline (Brokerage → Office → Team → Personal). Personal (1-user) brands sit at depth 3. The previous versions either scanned one level, or re-fetched each grouping brand — both fragile.

Fix: one API call returns the whole tree; the mapper now walks the inline children recursively and records every brand with exactly one user (at any depth) as user_id => brand_id. No per-brand re-fetching.

Verified against production brand 86c8804e: 128 personal brands found (was 1), and the sample agents (52f94e74, f69f3afc, 65c76a9e) map to their correct brand ids.

Version bumped 7.0.76 → 7.0.77.