diff --git a/src/lib/services.ts b/src/lib/services.ts index 05459cc..9e39b21 100644 --- a/src/lib/services.ts +++ b/src/lib/services.ts @@ -192,6 +192,18 @@ const calculateTallyData = async (roots: AggregatorRoot[]): Promise { + virtualRoot.root_server_url = virtualRoot.root_server_url.replace(/\/$/, ''); + const version = JSON.parse(virtualRoot.server_info).version; + byRootServerVersions[version] = (byRootServerVersions[version] || 0) + 1; + meetingsCount += virtualRoot.num_total_meetings; + groupsCount += virtualRoot.num_groups; + areasCount += virtualRoot.num_areas; + regionsCount += virtualRoot.num_regions; + zonesCount += virtualRoot.num_zones; + }); + filteredRoots.push(...virtualRoots); return { meetingsCount,